| 55 | \*---------------------------------------------------------------------------*/ |
| 56 | |
| 57 | class normal |
| 58 | : |
| 59 | public distributionModel |
| 60 | { |
| 61 | // Private data |
| 62 | |
| 63 | |
| 64 | //- Distribution minimum |
| 65 | scalar minValue_; |
| 66 | |
| 67 | //- Distribution maximum |
| 68 | scalar maxValue_; |
| 69 | |
| 70 | |
| 71 | // Model coefficients |
| 72 | |
| 73 | scalar expectation_; |
| 74 | scalar variance_; |
| 75 | |
| 76 | scalar a_; |
| 77 | |
| 78 | |
| 79 | public: |
| 80 | |
| 81 | //- Runtime type information |
| 82 | TypeName("normal"); |
| 83 | |
| 84 | |
| 85 | // Constructors |
| 86 | |
| 87 | //- Construct from components |
| 88 | normal(const dictionary& dict, cachedRandom& rndGen); |
| 89 | |
| 90 | //- Construct copy |
| 91 | normal(const normal& p); |
| 92 | |
| 93 | //- Construct and return a clone |
| 94 | virtual autoPtr<distributionModel> clone() const |
| 95 | { |
| 96 | return autoPtr<distributionModel>(new normal(*this)); |
| 97 | } |
| 98 | |
| 99 | |
| 100 | //- Destructor |
| 101 | virtual ~normal(); |
| 102 | |
| 103 | |
| 104 | // Member Functions |
| 105 | |
| 106 | //- Sample the distributionModel |
| 107 | virtual scalar sample() const; |
| 108 | |
| 109 | //- Return the minimum value |
| 110 | virtual scalar minValue() const; |
| 111 | |
| 112 | //- Return the maximum value |
| 113 | virtual scalar maxValue() const; |
| 114 |
no outgoing calls
no test coverage detected