RMOL Logo Get Revenue Management Optimisation Library at SourceForge.net. Fast, secure and Free Open Source software downloads

FldDistributionParameters.hpp

Go to the documentation of this file.
00001 #ifndef __RMOL_FLDDISTRIBUTIONPARAMETERS_HPP
00002 #define __RMOL_FLDDISTRIBUTIONPARAMETERS_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // RMOL
00008 #include <rmol/field/FldAbstract.hpp>
00009 
00010 namespace RMOL {
00011 
00014   class FldDistributionParameters : public FldAbstract {
00015   public:
00017     FldDistributionParameters ();
00018     FldDistributionParameters (const FldDistributionParameters&);
00019     FldDistributionParameters (const double iMean,
00020                                const double iStandardDeviation);
00021 
00023     virtual ~FldDistributionParameters();
00024     
00025 
00026     // /////////// Getters ////////////
00028     double getMean() const {
00029       return _mean;
00030     }
00032     double getStandardDeviation() const {
00033       return _standardDeviation;
00034     }
00036     double getVariance() const;
00037     
00038 
00039     // //////// Setters /////////
00041     void setMean (const double iMean) {
00042       _mean = iMean;
00043     }
00045     void setStandardDeviation (const double iStandardDeviation) {
00046       _standardDeviation = iStandardDeviation;
00047     }
00048 
00049     
00050     // ///////// Display methods ////////
00053     void toStream (std::ostream&) const;
00054 
00057     void fromStream (std::istream&);
00058 
00059     
00060   private:
00061     // ////////// Attributes /////////
00063     double _mean;
00064     
00068     double _standardDeviation;
00069 
00070   };
00071 }
00072 #endif
SourceForge Logo

Generated on Sat Oct 16 19:00:47 2010 for RMOL by Doxygen 1.6.2-20100208