Class MultiVariateStudentT
java.lang.Object
solvers.queueingnet.montecarloLogistic.distributions.MultiVariateStudentT
- All Implemented Interfaces:
MultiVariateRealDistribution
Multivariate student t. Implemented with an embedded MVG and a chi-squared
multiplier
-
Constructor Summary
ConstructorsConstructorDescriptionMultiVariateStudentT(double[] mean, double[][] cov, int df) Constructor with default seed = 0MultiVariateStudentT(double[] mean, double[][] cov, int df, int seed) Multivariate student t constructor.Copy constructor with default seed = 0MultiVariateStudentT(MultiVariateStudentT MVST, int seed) Copy constructor with specified seed -
Method Summary
Modifier and TypeMethodDescriptioncopy()required interface to copy distribution objectcopy(int seed) copy distribution with specified integer seeddouble[][]intgetDF()intgetDim()double[]getMean()double[]Get sample from this distribution.doublepdf(double[] point) pdf of specified point in this distribution
-
Constructor Details
-
MultiVariateStudentT
public MultiVariateStudentT(double[] mean, double[][] cov, int df, int seed) throws InternalErrorException Multivariate student t constructor. Covariance matrix needs to be square. Length of mean vector needs to be the same size as of covariance. degree of freedom needs to be positive integer- Parameters:
mean- double vector representing the meancov- covariance matrixdf- degree of freedomseed- integer seed- Throws:
InternalErrorException
-
MultiVariateStudentT
Constructor with default seed = 0- Parameters:
mean- mean vectorcov- covariance square arraydf- degree of freedom- Throws:
InternalErrorException
-
MultiVariateStudentT
Copy constructor with default seed = 0- Parameters:
MVST-- Throws:
InternalErrorException
-
MultiVariateStudentT
Copy constructor with specified seed- Parameters:
MVST-seed-- Throws:
InternalErrorException
-
-
Method Details
-
copy
Description copied from interface:MultiVariateRealDistributionrequired interface to copy distribution object- Specified by:
copyin interfaceMultiVariateRealDistribution- Returns:
- a MVRD
- Throws:
InternalErrorException
-
copy
Description copied from interface:MultiVariateRealDistributioncopy distribution with specified integer seed- Specified by:
copyin interfaceMultiVariateRealDistribution- Parameters:
seed- integer to seed the distribution with- Returns:
- a copy of the distribution, with a different seed
- Throws:
InternalErrorException
-
getSample
public double[] getSample()Description copied from interface:MultiVariateRealDistributionGet sample from this distribution. Since it is multivariate, return type is an array- Specified by:
getSamplein interfaceMultiVariateRealDistribution- Returns:
- double array - sample from this distribution
-
getDim
public int getDim()- Specified by:
getDimin interfaceMultiVariateRealDistribution
-
getMean
public double[] getMean() -
getCovariance
public double[][] getCovariance() -
getDF
public int getDF() -
pdf
Description copied from interface:MultiVariateRealDistributionpdf of specified point in this distribution- Specified by:
pdfin interfaceMultiVariateRealDistribution- Parameters:
point- point to evaluate pdf at- Returns:
- double which is the pdf
- Throws:
InternalErrorException
-