search for: sample_t

Displaying 5 results from an estimated 5 matches for "sample_t".

Did you mean: sample_1
2010 Mar 08
1
Help with Hmisc, cut2, split and quantile
Hello, I have a set of data with two columns: "Target" and "Actual". A http://n4.nabble.com/file/n1584647/Sample_table.txt Sample_table.txt is attached but the data looks like this: Actual Target -0.125 0.016124906 0.135 0.120799865 ... ... ... ... I want to be able to break the data into tables based on quantiles in the "Target" column. I can see (using cut2, and also quantile) how to get the...
2001 Aug 10
1
Standard Open Source Bug detected, try murksaround ...
...fprintf (stderr, " ..." ); fread ( header, sizeof(*header), sizeof(header)/sizeof(*header), fp ); switch ( header[11] ) { case 2: *len = fread ( buff, sizeof(stereo_t), maxlen, fp ); break; case 1: *len = fread ( buff, sizeof(sample_t), maxlen, fp ); for ( i = *len; i-- > 0; ) buff[i][0] = buff[i][1] = ((sample_t*)buff) [i]; break; case 0: fprintf (stderr, "\b\b\b\b, Standard Open Source Bug detected, try murksaround ..." ); *len = fread ( buff,...
2006 Mar 02
0
Voice Activation Level (speex 1.1.11.1)
...problems went away. It worked far better than I ever expected. Background noise is not a problem if you just use the Speex denoiser (which is VERY effective) and calculate the power of the signal after that. This is the function I use to calculate the power: // Returns the power of a signal (sample_t is signed 16-bit int) float getPower(sample_t *signal, int numSamples) { float powerSum = 0.0f; for (int i = 0; i < numSamples; i++) { float amp = (float) abs(signal[i]); powerSum += amp * amp; } return powerSum / (32768.0f * 32768.0f * (float) numSamples); } I can't say that this...
2006 Mar 02
0
Voice Activation Level (speex 1.1.11.1)
...lems went away. It worked far better than I ever expected. =20 Background noise is not a problem if you just use the Speex denoiser = (which is VERY effective) and calculate the power of the signal after = that. This is the function I use to calculate the power: // Returns the power of a signal (sample_t is signed 16-bit int) float = getPower(sample_t *signal, int numSamples) { float powerSum =3D 0.0f; for (int i =3D 0; i < numSamples; i++) { float amp =3D (float) abs(signal[i]); powerSum +=3D amp * amp; } return powerSum / (32768.0f * 32768.0f * (float) numSamples); } I can't say...
2006 Mar 03
0
Fw: Voice Activation Level (speex 1.1.11.1)
...problems went away. It worked far better than I ever expected. Background noise is not a problem if you just use the Speex denoiser (which is VERY effective) and calculate the power of the signal after that. This is the function I use to calculate the power: // Returns the power of a signal (sample_t is signed 16-bit int) float getPower(sample_t *signal, int numSamples) { float powerSum = 0.0f; for (int i = 0; i < numSamples; i++) { float amp = (float) abs(signal[i]); powerSum += amp * amp; } return powerSum / (32768.0f * 32768.0f * (float) numSamples); } I can't say that this is optim...