SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
Distribution.java
1/*
2 * Class: Distribution
3 * Description: interface for all discrete and continuous distributions
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10 *
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 */
25package umontreal.ssj.probdist;
26
39public interface Distribution {
40
47 public double cdf(double x);
48
55 public double barF(double x);
56
65 public double inverseF(double u);
66
70 public double getMean();
71
75 public double getVariance();
76
80 public double getStandardDeviation();
81
86 public double[] getParams();
87
88}
This interface should be implemented by all classes supporting discrete and continuous distributions.
double inverseF(double u)
Returns the inverse distribution function , defined in ( inverseF ).
double cdf(double x)
Returns the distribution function .
double getVariance()
Returns the variance of the distribution function.
double getStandardDeviation()
Returns the standard deviation of the distribution function.
double barF(double x)
Returns .
double getMean()
Returns the mean of the distribution function.
double[] getParams()
Returns the parameters of the distribution function in the same order as in the constructors.