search for: input_tail

Displaying 4 results from an estimated 4 matches for "input_tail".

2013 Jan 24
1
Help regarding kmeans output. need to save the clusters into different directories/folders.
...66666666665 291 2.6735395189003435 2 200 7 24 2.9583333333333335 6 7.0 3 300 0 24 1.7916666666666667 874 0.7963386727688787 4 400 8 24 4.291666666666667 1 8.0 5 500 5 24 2.4166666666666665 291 2.6735395189003435 $R > *input_tail <- read.table("1.tsv", header=FALSE, sep="\t") * > *clustering_tail <- kmeans(input_tail, 5) * > *print(clustering_tail)* ... [99973] 4 4 4 4 4 4 4 2 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 Within cluster sum of squares by cluster: [1] 2.731015e+26 8.785281e+22 4.726...
2011 Nov 17
1
Just getting noise
...umber of bytes per frame and then calling > speex_encode_int() that many times. Something like > > ? ? ? ? ? ? ? ?speex_bits_reset( &bits ); > ? ? ? ? ? ? ? ?for( n = 0; n < num_frames; ++n ) > ? ? ? ? ? ? ? ?{ > ? ? ? ? ? ? ? ? ? ? ? ?speex_encode_int( enc_state, (int16_t*)input_tail, > &bits ); > ? ? ? ? ? ? ? ? ? ? ? ?input_tail += BYTES_PER_FRAME; > ? ? ? ? ? ? ? ?} > ? ? ? ? ? ? ? ?speex_bits_insert_terminator( &bits ); > ? ? ? ? ? ? ? ?n = speex_bits_nbytes( &bits ) + RTP_HEADER_SIZE; > > Of course, I was sending RTP packets. > > On t...
2011 Nov 16
2
Just getting noise
Alright noted, I changed me code so that the state is created in the constructor and destroyed in the destructor of the object. However I'm still getting the same issue although I'm sure that would have bit me sooner or later. The new code is as follows. virtual Enigma::u8* Encode(Enigma::u8* inputBuffer,size_t inputSize, size_t& outputSize) { short *in=(short*)inputBuffer;
2011 Nov 16
0
Just getting noise
...my input by the number of bytes per frame and then calling speex_encode_int() that many times. Something like speex_bits_reset( &bits ); for( n = 0; n < num_frames; ++n ) { speex_encode_int( enc_state, (int16_t*)input_tail, &bits ); input_tail += BYTES_PER_FRAME; } speex_bits_insert_terminator( &bits ); n = speex_bits_nbytes( &bits ) + RTP_HEADER_SIZE; Of course, I was sending RTP packets. On the decoding side, I was using the j...