本文整理汇总了Java中dr.math.UnivariateFunction类的典型用法代码示例。如果您正苦于以下问题:Java UnivariateFunction类的具体用法?Java UnivariateFunction怎么用?Java UnivariateFunction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
UnivariateFunction类属于dr.math包,在下文中一共展示了UnivariateFunction类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LikelihoodProfile
import dr.math.UnivariateFunction; //导入依赖的package包/类
public LikelihoodProfile(Likelihood likelihood_, Parameter parameter_, final int dim_,
double lowerBound_, double upperBound_, int numPoints_) {
this.likelihood = likelihood_;
this.parameter = parameter_;
this.dim = dim_;
this.lowerBound = lowerBound_;
this.upperBound = upperBound_;
this.numPoints = numPoints_;
function = new UnivariateFunction() {
public double evaluate(double argument) {
parameter.setParameterValue(dim, argument);
return likelihood.getLogLikelihood();
}
public double getLowerBound() {
return lowerBound;
}
public double getUpperBound() {
return upperBound;
}
};
}
示例2: TaxaConstraint
import dr.math.UnivariateFunction; //导入依赖的package包/类
public TaxaConstraint(TaxonList taxons, ParametricDistributionModel p, boolean isMono) {
this.taxons = taxons;
this.isMonophyletic = isMono;
if (p != null) {
final UnivariateFunction univariateFunction = p.getProbabilityDensityFunction();
lower = univariateFunction.getLowerBound();
upper = univariateFunction.getUpperBound();
} else {
lower = 0;
upper = Double.POSITIVE_INFINITY;
}
}
示例3: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
public final UnivariateFunction getProbabilityDensityFunction() {
return pdfFunction;
}
示例4: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
return pdfFunction;
}
示例5: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
* @return a probability density function representing this distribution
*/
public UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException("Not yet implemented");
}
示例6: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException("Not yet implemented");
}
示例7: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
* @return a probability density function representing this distribution
*/
public final UnivariateFunction getProbabilityDensityFunction() {
return pdfFunction;
}
示例8: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException();
}
示例9: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
* @return a probability density function representing this distribution
*/
public UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException("Not Implemented.");
}
示例10: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
@Override
public UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException("Not yet implemented");
}
示例11: getProbabilityDensityFunction
import dr.math.UnivariateFunction; //导入依赖的package包/类
public final UnivariateFunction getProbabilityDensityFunction() {
throw new RuntimeException("Not yet implemented.");
}