本文整理汇总了Java中dr.math.distributions.ExponentialDistribution类的典型用法代码示例。如果您正苦于以下问题:Java ExponentialDistribution类的具体用法?Java ExponentialDistribution怎么用?Java ExponentialDistribution使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExponentialDistribution类属于dr.math.distributions包,在下文中一共展示了ExponentialDistribution类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: jumpLogLikelihood
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
protected double jumpLogLikelihood() {
double logLikelihood = 0;
for (int i=0; i < latestDate - earliestDate - 1; i++) {
double x = jumpVectorParameter.getParameterValue(i);
double lambda = 1 / jumpMeanParameter.getParameterValue(0);
logLikelihood += ExponentialDistribution.logPdf(x, lambda);
}
return logLikelihood;
}
示例2: pdf
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double pdf(double x) {
if (x < offset) return 0.0;
return ExponentialDistribution.pdf(x - offset, 1.0 / getMean());
}
示例3: logPdf
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double logPdf(double x) {
if (x < offset) return Double.NEGATIVE_INFINITY;
return ExponentialDistribution.logPdf(x - offset, 1.0 / getMean());
}
示例4: cdf
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double cdf(double x) {
if (x < offset) return 0.0;
return ExponentialDistribution.cdf(x - offset, 1.0 / getMean());
}
示例5: quantile
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double quantile(double y) {
return ExponentialDistribution.quantile(y, 1.0 / getMean()) + offset;
}
示例6: mean
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double mean() {
return ExponentialDistribution.mean(1.0 / getMean()) + offset;
}
示例7: variance
import dr.math.distributions.ExponentialDistribution; //导入依赖的package包/类
public double variance() {
return ExponentialDistribution.variance(1.0 / getMean());
}