Lines Matching refs:SamplesNum
51 // SamplesNum - number of samples in sample set used in algorithm
57 CV_IMPL CvConDensation* cvCreateConDensation( int DP, int MP, int SamplesNum )
65 if( DP < 0 || MP < 0 || SamplesNum < 0 )
71 CD->SamplesNum = SamplesNum;
75 CV_CALL( CD->flSamples = (float **) cvAlloc( sizeof( float * ) * SamplesNum ));
76 CV_CALL( CD->flNewSamples = (float **) cvAlloc( sizeof( float * ) * SamplesNum ));
77 CV_CALL( CD->flSamples[0] = (float *) cvAlloc( sizeof( float ) * SamplesNum * DP ));
78 CV_CALL( CD->flNewSamples[0] = (float *) cvAlloc( sizeof( float ) * SamplesNum * DP ));
81 for( i = 1; i < SamplesNum; i++ )
89 CV_CALL( CD->flConfidence = (float *) cvAlloc( sizeof( float ) * SamplesNum ));
90 CV_CALL( CD->flCumulative = (float *) cvAlloc( sizeof( float ) * SamplesNum ));
110 // SamplesNum - number of samples in sample set used in algorithm
174 for( i = 0; i < ConDens->SamplesNum; i++ )
188 Sum = Sum / ConDens->SamplesNum;
191 for( i = 0; i < ConDens->SamplesNum; i++ )
194 while( (ConDens->flCumulative[j] <= (float) i * Sum)&&(j<ConDens->SamplesNum-1))
202 for( i = 0; i < ConDens->SamplesNum; i++ )
237 float Prob = 1.f / conDens->SamplesNum;
266 for( j = 0; j < conDens->SamplesNum; j++ )