* This abstract class provides the ability to sample from a distribution. */
| 589 | * This abstract class provides the ability to sample from a distribution. |
| 590 | */ |
| 591 | class CSample |
| 592 | { |
| 593 | public: |
| 594 | virtual double sample() = 0; |
| 595 | virtual int textDescr(char *s, int len) = 0; |
| 596 | virtual int timeDescr(char *s, int len) = 0; |
| 597 | virtual double cdfInv(double percentile) = 0; |
| 598 | virtual ~CSample(); |
| 599 | private: |
| 600 | }; |
| 601 | |
| 602 | /* Always return a fixed value for the sample. */ |
| 603 | class CFixed : public CSample |
nothing calls this directly
no outgoing calls
no test coverage detected