source: git/factory/cf_reval.h

spielwiese
Last change on this file was abddbe, checked in by Martin Lee <martinlee84@…>, 10 years ago
chg: added brief descriptions to some files
  • Property mode set to 100644
File size: 839 bytes
Line 
1/* emacs edit mode for this file is -*- C++ -*- */
2
3/**
4 * @file cf_reval.h
5 *
6 * generate random evaluation points
7**/
8
9#ifndef INCL_CF_REVAL_H
10#define INCL_CF_REVAL_H
11
12// #include "config.h"
13
14#include "canonicalform.h"
15#include "cf_eval.h"
16#include "cf_random.h"
17
18/*BEGINPUBLIC*/
19
20/**
21 * class to generate random evaluation points
22 *
23 * @sa cf_eval.h
24**/
25class REvaluation : public Evaluation
26{
27protected: // neeeded in FFREvaluation
28    CFRandom * gen;
29public:
30    REvaluation() : Evaluation(), gen(0) {}
31    REvaluation( int min0, int max0, const CFRandom & sample ) : Evaluation( min0, max0 ), gen( sample.clone() ) {}
32    REvaluation( const REvaluation & e );
33    ~REvaluation();
34    REvaluation& operator= ( const REvaluation & e );
35    void nextpoint();
36    void nextpoint(int n);
37};
38
39/*ENDPUBLIC*/
40
41#endif /* ! INCL_CF_REVAL_H */
Note: See TracBrowser for help on using the repository browser.