map.txt
1.wav,2.wav,.......
146583845232.wav, 0
1465838452998.wav, 1
1465838491413.wav, 1
1465838489799.wav, 0
....
##1) Training
Rscript main.R -train /path/to/sample_folder
this will do following step
1) read map.txt and group the wav files in group 1 and group 0
2) maintain one list object per group
3) maintain meanspec vector of each wav in that list
4) dump the list objects in filesystem, in the sample_folder. Lets say rDump is its name.
##2) Prediction
Rscript main.R -predict /path/to/xyz.wav
this will do following step
1) read list object from rDump(filesystem)
2) create meanspec vector of xyz.wav.
3) within each group correlate xyz.wav's meanspec vector.
4) take 90percentile value of those values in each group
5) whichever group has highest value, declare that as prediction.
meanspec parameters
ovlp=0, from=0 ,to=5 , wn="hanning" , wl=4096
newwave
use median