Beispiel #1
0
 /// @param pdf DhbStatistics.ProbabilityDensityFunction
 /// @param n long
 /// @param w double
 public ScaledProbabilityDensityFunction(
     ProbabilityDensityFunction pdf, long n, double w)
 {
     _density  = pdf;
     Count     = n;
     _binWidth = w;
 }
Beispiel #2
0
 /// @param f statistics.ProbabilityDensity
 /// @param hist curves.Histogram
 public ScaledProbabilityDensityFunction(ProbabilityDensityFunction f, IHistogram hist)
     : this(f, hist.Count, hist.BinWidth)
 {
 }
Beispiel #3
0
 /// Create a new instance with given parameters.
 /// @param p statistics.ProbabilityDensityFunction
 /// @param x double
 public OffsetDistributionFunction(ProbabilityDensityFunction p,
                                   double x)
 {
     _probabilityDensity = p;
     _offset             = x;
 }