commons-statistics-regression/src/main/java/org/apache/commons/statistics/regression/stored/data_input/RegressionDataLoader.java
/**
     * <p>
     * Loads new Y and X data as double arrays.
     * </p>
     *
     * <p>
     * boolean hasIntercept which should be set to {@code true} if sample data
     * already contains intercept (column of 1's) will be set to {@code false} by
     * default inside constructor of {@code RegressionRawData} class.
     * </p>
     *
     * @param y data vector double 1D array
     * @param x data matrix double 2D array
     */

Loads new Y and X data as double arrays.


boolean hasIntercept which should be set to  true if sample data
already contains intercept (column of 1's) will be set to  false by
default inside constructor of  RegressionRawData class.

@param y data vector double 1D array
@param x data matrix double 2D array
Loads new Y and X data as double arrays . boolean hasIntercept which should be set to true if sample data already contains intercept ( column of 1 ' s ) will be set to false by default inside constructor of RegressionRawData class . @param y data vector double 1D array @param x data matrix double 2D array
public void inputNewSampleData(double[] y, double[][] x) {
        validateSampleData(y, x);
        if (inputData == null) {
            inputData = new RegressionRawData();
        }
        inputData.setHasIntercept(false);
        inputNewYSampleData(y);
        inputNewXSampleData(x);
    }
public void inputNewSampleData ( double [ ] y , double [ ] [ ] x ) { validateSampleData ( y , x ) ; if ( inputData == null ) { inputData = new RegressionRawData ( ) ; } inputData . setHasIntercept ( false ) ; inputNewYSampleData ( y ) ; inputNewXSampleData ( x ) ; }
<p>
 Loads new Y and X data as double arrays.
<p > Loads new Y and X data as double arrays .