当前位置: 首页>>代码示例>>Java>>正文


Java UnivariateFunction类代码示例

本文整理汇总了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;
        }
    };
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:26,代码来源:LikelihoodProfile.java

示例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;
    }
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:14,代码来源:CoalescentSimulator.java

示例3: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
public final UnivariateFunction getProbabilityDensityFunction() {
    return pdfFunction;
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:4,代码来源:InverseGammaDistribution.java

示例4: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
    return pdfFunction;
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:4,代码来源:TruncatedDistribution.java

示例5: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
 * @return a probability density function representing this distribution
 */
public UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException("Not yet implemented");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:7,代码来源:BifractionalDiffusionDensity.java

示例6: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException("Not yet implemented");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:4,代码来源:TDistribution.java

示例7: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
 * @return a probability density function representing this distribution
 */
public final UnivariateFunction getProbabilityDensityFunction() {
    return pdfFunction;
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:7,代码来源:BetaDistribution.java

示例8: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
public UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException();
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:4,代码来源:DiscreteUniformDistribution.java

示例9: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
/**
 * @return a probability density function representing this distribution
 */
public UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException("Not Implemented.");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:7,代码来源:KernelDensityEstimatorDistribution.java

示例10: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
@Override
public UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException("Not yet implemented");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:5,代码来源:GeneralizedIntegerGammaDistribution.java

示例11: getProbabilityDensityFunction

import dr.math.UnivariateFunction; //导入依赖的package包/类
public final UnivariateFunction getProbabilityDensityFunction() {
    throw new RuntimeException("Not yet implemented.");
}
 
开发者ID:beast-dev,项目名称:beast-mcmc,代码行数:4,代码来源:TwoPieceLocationScaleDistributionModel.java


注:本文中的dr.math.UnivariateFunction类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。