name: SignalDetector

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_sp.a

SignalDetector();
SignalDetector(ALGORITHM algorithm,IMPLEMENTATION implementation);
boolean apply(Vector<VectorFloat> signal);
boolean getStartPoints(float& t1);
boolean getEndTime(VectorFloat& start_time, 
		   VectorFloat& end_time, 
		   long channel_index_a);

quick start:

SignalDetector sig_det;
  Sof sof;
  String file;
  int num_quit_try = 100;
  file.assign(L"./diagnose_param.sof");
  sof.open(file, File::READ_ONLY);
  sig_det.read(sof, (long)0);
  sig_det.init();
  Vector<VectorFloat> data(1);
  AudioFile src;
  src.setFileFormat(AudioFile::RAW);  
  src.setFileType(AudioFile::BINARY);  
  src.setSampleFrequency(8000);
  src.setSampleNumBytes(2);
  src.setNumChannels(1);
  src.open(L"./diagnose.raw");
  long N = sig_det.getNSamplesToRead(); 
  long i = 0;
  long len = src.getNumSamples(); 
  len = (long)len / N;     
  float t1, t2;
  long num_utt, nf = 0;
  while (i <= len + num_quit_try) {
 	
    src.getData(data(0), 0, i * N, N); 
    i++;	
    sig_det.apply(data);
    nf++;
}
  VectorFloat start_points;	
  VectorFloat stop_points; 			
  sig_det.getEndTime(start_points, stop_points, 0);	
  src.close();
  sof.close();

An example with comments can be found at the end of the page.
description:

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

public methods:

public methods:

examples:

notes: