commons-statistics-regression/src/main/java/org/apache/commons/statistics/regression/stored/data_input/RegressionDataLoader.java
/**
     * <p>
     * Sets Y data by creating a new StatisticsMatrix object from given array (see
     * {@code newYmatrix}).
     * </p>
     *
     * <p>
     * Note that previous X sample data must be compatible or {@code null} if it's
     * initial input.
     * </p>
     *
     * @param y 1D double array
     */

Sets Y data by creating a new StatisticsMatrix object from given array (see
newYmatrix).


Note that previous X sample data must be compatible or  null if it's
initial input.

@param y 1D double array
Sets Y data by creating a new StatisticsMatrix object from given array ( see newYmatrix ) . Note that previous X sample data must be compatible or null if it ' s initial input . @param y 1D double array
public void inputNewYSampleData(double[] y) {
        if (y == null) {
            throw new IllegalArgumentException("Null y argument.");
        }
        if (inputData.getX() != null) {
            validateSampleData(y, inputData.getX().toArray2D());
        }
        inputData.setYData(createYmatrix(y));
    }
public void inputNewYSampleData ( double [ ] y ) { if ( y == null ) { throw new IllegalArgumentException ( "Null y argument." ) ; } if ( inputData . getX ( ) != null ) { validateSampleData ( y , inputData . getX ( ) . toArray2D ( ) ) ; } inputData . setYData ( createYmatrix ( y ) ) ; }
<p>
 Sets Y data by creating a new StatisticsMatrix object from given array (see
 {@code newYmatrix}).
<p > Sets Y data by creating a new StatisticsMatrix object from given array ( see { @code newYmatrix } ) .