commons-statistics-regression/src/test/java/org/apache/commons/statistics/regression/stored/AbstractRegressionTest.java
// repeated from RegressionDataLoaderTest case and will be removed later.
repeated from RegressionDataLoaderTest case and will be removed later.
repeated from RegressionDataLoaderTest case and will be removed later .
@Test
    public void testNewSampleInsufficientData() {
        double[] data = new double[] {1, 2, 3, 4};
        Assertions.assertThrows(IllegalArgumentException.class, () -> myData.inputNewSampleData(data, 1, 3));
    }
@ Test public void testNewSampleInsufficientData ( ) { double [ ] data = new double [ ] { 1 , 2 , 3 , 4 } ; Assertions . assertThrows ( IllegalArgumentException . class , ( ) -> myData . inputNewSampleData ( data , 1 , 3 ) ) ; }
repeated from RegressionDataLoaderTest case and will be removed later.
repeated from RegressionDataLoaderTest case and will be removed later .