Random value(cvRng rng) In ML lib (Bug #205)


Added by guan-jhih chen almost 15 years ago. Updated over 14 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:- % Done:

0%

Category:ml
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

The variable:rng is set cvRng(-1) in Constructor of many classes in ML lib(like CvANN_MLP or others).
Is any way to reset the variable:rng without using inheriting method?
The variable:rng should be modified with some random factor.

Maybe initialize the variable:rng with certain variable of constructor or certain setting method.


Associated revisions

Revision c104cdce
Added by Maria Dimashova over 14 years ago

made random generators of MLL classes depended on default rng (theRNG) (#205).

Revision f7dc98f6
Added by Andrey Kamaev about 12 years ago

Merge pull request #205 from taka-no-me/gtest_r629

Update googletest to the latest upstream

History

Updated by Maria Dimashova over 14 years ago

From r4114 MLL random generators depend on default opencv random number generator that can be returned by theRNG().
You may change the random generator state used in MLL classes by changing default random number generator state. For example:

theRNG().state = 0x111111; // your state value
CvDTree tree;
// tree rng is initialized by 0x111111 seed.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF