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


Java Regression.getPowerRegression方法代码示例

本文整理汇总了Java中org.jfree.data.statistics.Regression.getPowerRegression方法的典型用法代码示例。如果您正苦于以下问题:Java Regression.getPowerRegression方法的具体用法?Java Regression.getPowerRegression怎么用?Java Regression.getPowerRegression使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.data.statistics.Regression的用法示例。


在下文中一共展示了Regression.getPowerRegression方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testPowerRegression1b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 1 AFTER converting it to
 * an XYSeries.
 */
public void testPowerRegression1b() {

    final double[][] data = createSampleData1();

    final XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 11; i++) {
        series.add(data[i][0], data[i][1]);
    }
    final XYDataset ds = new XYSeriesCollection(series);
    final double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(0.91045813, result[0], 0.0000001);
    assertEquals(0.88918346, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:RegressionTests.java

示例2: testPowerRegression2b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 2 AFTER converting it to
 * an XYSeries.
 */
public void testPowerRegression2b() {

    final double[][] data = createSampleData2();

    final XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 10; i++) {
        series.add(data[i][0], data[i][1]);
    }
    final XYDataset ds = new XYSeriesCollection(series);
    final double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(106.1241681, result[0], 0.0000001);
    assertEquals(-0.8466615, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:RegressionTests.java

示例3: testPowerRegression1b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 1 AFTER 
 * converting it to an XYSeries.
 */
public void testPowerRegression1b() {

    double[][] data = createSampleData1();

    XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 11; i++) {
        series.add(data[i][0], data[i][1]);
    }
    XYDataset ds = new XYSeriesCollection(series);
    double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(0.91045813, result[0], 0.0000001);
    assertEquals(0.88918346, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:RegressionTests.java

示例4: testPowerRegression2b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 2 AFTER 
 * converting it to an XYSeries.
 */
public void testPowerRegression2b() {

    double[][] data = createSampleData2();

    XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 10; i++) {
        series.add(data[i][0], data[i][1]);
    }
    XYDataset ds = new XYSeriesCollection(series);
    double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(106.1241681, result[0], 0.0000001);
    assertEquals(-0.8466615, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:20,代码来源:RegressionTests.java

示例5: testPowerRegression1b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 1 AFTER
 * converting it to an XYSeries.
 */
public void testPowerRegression1b() {

    double[][] data = createSampleData1();

    XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 11; i++) {
        series.add(data[i][0], data[i][1]);
    }
    XYDataset ds = new XYSeriesCollection(series);
    double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(0.91045813, result[0], 0.0000001);
    assertEquals(0.88918346, result[1], 0.0000001);

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:20,代码来源:RegressionTests.java

示例6: testPowerRegression2b

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 2 AFTER
 * converting it to an XYSeries.
 */
public void testPowerRegression2b() {

    double[][] data = createSampleData2();

    XYSeries series = new XYSeries("Test");
    for (int i = 0; i < 10; i++) {
        series.add(data[i][0], data[i][1]);
    }
    XYDataset ds = new XYSeriesCollection(series);
    double[] result = Regression.getPowerRegression(ds, 0);

    assertEquals(106.1241681, result[0], 0.0000001);
    assertEquals(-0.8466615, result[1], 0.0000001);

}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:20,代码来源:RegressionTests.java

示例7: testPowerRegression1a

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 1.
 */
public void testPowerRegression1a() {

    final double[][] data = createSampleData1();
    final double[] result = Regression.getPowerRegression(data);
    assertEquals(0.91045813, result[0], 0.0000001);
    assertEquals(0.88918346, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:RegressionTests.java

示例8: testPowerRegression2a

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 2.
 */
public void testPowerRegression2a() {

    final double[][] data = createSampleData2();
    final double[] result = Regression.getPowerRegression(data);
    assertEquals(106.1241681, result[0], 0.0000001);
    assertEquals(-0.8466615, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:RegressionTests.java

示例9: testPowerRegression1a

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 1.
 */
public void testPowerRegression1a() {

    double[][] data = createSampleData1();
    double[] result = Regression.getPowerRegression(data);
    assertEquals(0.91045813, result[0], 0.0000001);
    assertEquals(0.88918346, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:RegressionTests.java

示例10: testPowerRegression2a

import org.jfree.data.statistics.Regression; //导入方法依赖的package包/类
/**
 * Checks the results of a power regression on sample dataset 2.
 */
public void testPowerRegression2a() {

    double[][] data = createSampleData2();
    double[] result = Regression.getPowerRegression(data);
    assertEquals(106.1241681, result[0], 0.0000001);
    assertEquals(-0.8466615, result[1], 0.0000001);

}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:12,代码来源:RegressionTests.java


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