本文整理汇总了Java中org.apache.commons.math3.analysis.interpolation.BicubicInterpolator类的典型用法代码示例。如果您正苦于以下问题:Java BicubicInterpolator类的具体用法?Java BicubicInterpolator怎么用?Java BicubicInterpolator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BicubicInterpolator类属于org.apache.commons.math3.analysis.interpolation包,在下文中一共展示了BicubicInterpolator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getBiInterpFunc
import org.apache.commons.math3.analysis.interpolation.BicubicInterpolator; //导入依赖的package包/类
/**
* Make interpolation function for grid data
* @param x X data
* @param y Y data
* @param z Z data
* @return Interpolation function
*/
public static BivariateFunction getBiInterpFunc(Array x, Array y, Array z) {
double[] xd = (double[]) ArrayUtil.copyToNDJavaArray(x);
double[] yd = (double[]) ArrayUtil.copyToNDJavaArray(y);
double[][] zd = (double[][]) ArrayUtil.copyToNDJavaArray(z);
BivariateGridInterpolator li = new BicubicInterpolator();
BivariateFunction func = li.interpolate(xd, yd, zd);
return func;
}
示例2: getLogNormFactorInterpolatingFunction
import org.apache.commons.math3.analysis.interpolation.BicubicInterpolator; //导入依赖的package包/类
private static BicubicInterpolatingFunction getLogNormFactorInterpolatingFunction() {
final Class<?> clazz = CoverageModelCopyRatioEmissionProbabilityCalculator.class;
final double[] mu = loadDoubleArrayTable(clazz.getResourceAsStream(MU_TABLE_RESOURCE));
final double[] psi = loadDoubleArrayTable(clazz.getResourceAsStream(PSI_TABLE_RESOURCE));
final double[][] logNorm = loadDouble2DArrayTable(clazz.getResourceAsStream(LOG_NORM_TABLE_RESOURCE));
final BicubicInterpolator interp = new BicubicInterpolator();
return interp.interpolate(mu, psi, logNorm);
}
开发者ID:broadinstitute,项目名称:gatk-protected,代码行数:9,代码来源:CoverageModelCopyRatioEmissionProbabilityCalculator.java