mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge pull request #9075 from TonyLianLong:master
Remove unnecessary Non-ASCII characters from source code (#9075) * Remove unnecessary Non-ASCII characters from source code Remove unnecessary Non-ASCII characters and replace them with ASCII characters * Remove dashes in the @param statement Remove dashes and place single space in the @param statement to keep coding style * misc: more fixes for non-ASCII symbols * misc: fix non-ASCII symbol in CMake file
This commit is contained in:
committed by
Alexander Alekhin
parent
9aaf6a66a3
commit
c8783f3e23
@@ -1248,11 +1248,11 @@ inline void RHO_HEST_REFC::rndSmpl(unsigned sampleSize,
|
||||
/**
|
||||
* Selection Sampling:
|
||||
*
|
||||
* Algorithm S (Selection sampling technique). To select n records at random from a set of N, where 0 < n ≤ N.
|
||||
* S1. [Initialize.] Set t ← 0, m ← 0. (During this algorithm, m represents the number of records selected so far,
|
||||
* Algorithm S (Selection sampling technique). To select n records at random from a set of N, where 0 < n <= N.
|
||||
* S1. [Initialize.] Set t = 0, m = 0. (During this algorithm, m represents the number of records selected so far,
|
||||
* and t is the total number of input records that we have dealt with.)
|
||||
* S2. [Generate U.] Generate a random number U, uniformly distributed between zero and one.
|
||||
* S3. [Test.] If (N – t)U ≥ n – m, go to step S5.
|
||||
* S3. [Test.] If (N - t)U >= n - m, go to step S5.
|
||||
* S4. [Select.] Select the next record for the sample, and increase m and t by 1. If m < n, go to step S2;
|
||||
* otherwise the sample is complete and the algorithm terminates.
|
||||
* S5. [Skip.] Skip the next record (do not include it in the sample), increase t by 1, and go back to step S2.
|
||||
|
||||
Reference in New Issue
Block a user