public class MultivariateMoments
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
addCovariance(java.lang.String strVariate1Name,
java.lang.String strVariate2Name,
double dblCovariance)
Add the Co-variance for the Named Variate Pair
|
boolean |
addMean(java.lang.String strVariateName,
double dblMean)
Add the Mean for the Named Variate
|
double |
correlation(java.lang.String strVariate1Name,
java.lang.String strVariate2Name)
Retrieve the Correlation between the Named Variate Pair
|
double |
covariance(java.lang.String strVariate1Name,
java.lang.String strVariate2Name)
Retrieve the Co-variance of the Named Variate Pair
|
double |
mean(java.lang.String strVariateName)
Retrieve the Mean of the Named Variate
|
int |
numVariate()
Retrieve the Number of Variates in the Distribution
|
static MultivariateMoments |
Standard(java.lang.String[] astrVariateName,
double[][] aadblVariate)
Generate the MultivariateMetrics Instance from the Series Realizations provided
|
static MultivariateMoments |
Standard(java.lang.String[] astrVariateName,
double[] adblMean,
double[][] aadblCovariance)
Generate the MultivariateMetrics Instance from the Specified Mean and Co-variance Inputs
|
double |
variance(java.lang.String strVariateName)
Retrieve the Variance of the Named Variate
|
java.util.Set<java.lang.String> |
variateList()
Retrieve the Variates for which the Metrics are available
|
public static final MultivariateMoments Standard(java.lang.String[] astrVariateName, double[][] aadblVariate)
astrVariateName
- Array of Variate Name HeadersaadblVariate
- Array of Variate Realization Arrayspublic static final MultivariateMoments Standard(java.lang.String[] astrVariateName, double[] adblMean, double[][] aadblCovariance)
astrVariateName
- Array of Variate Name HeadersadblMean
- Array of Variate MeansaadblCovariance
- Double Array of the Variate Co-variancepublic int numVariate()
public java.util.Set<java.lang.String> variateList()
public boolean addMean(java.lang.String strVariateName, double dblMean)
strVariateName
- The Named VariatedblMean
- The Variate Meanpublic double mean(java.lang.String strVariateName) throws java.lang.Exception
strVariateName
- The Named Variatejava.lang.Exception
- Thrown if the Named Variate Mean cannot be retrievedpublic boolean addCovariance(java.lang.String strVariate1Name, java.lang.String strVariate2Name, double dblCovariance)
strVariate1Name
- The Named Variate #1strVariate2Name
- The Named Variate #2dblCovariance
- The Variate Meanpublic double variance(java.lang.String strVariateName) throws java.lang.Exception
strVariateName
- The Named Variatejava.lang.Exception
- Thrown if the Named Variate Variance cannot be retrievedpublic double covariance(java.lang.String strVariate1Name, java.lang.String strVariate2Name) throws java.lang.Exception
strVariate1Name
- The Named Variate #1strVariate2Name
- The Named Variate #2java.lang.Exception
- Thrown if the Named Variate Co-variance cannot be retrievedpublic double correlation(java.lang.String strVariate1Name, java.lang.String strVariate2Name) throws java.lang.Exception
strVariate1Name
- The Named Variate #1strVariate2Name
- The Named Variate #2java.lang.Exception
- Thrown if the Named Variate Correlation cannot be retrieved