commons-statistics-regression/src/main/java/org/apache/commons/statistics/regression/stored/AbstractRegression.java
/**
     * Validates that input data is not null when passed into a Regression
     * functional concrete class.
     *
     * @param data as RegressionRawData class which holds X and Y data
     * @throws IllegalArgumentException if data or it's contained X or Y
     *                                  StatisticsMatrix objects are null.
     */
Validates that input data is not null when passed into a Regression
functional concrete class.

@param data as RegressionRawData class which holds X and Y data
@throws IllegalArgumentException if data or it's contained X or Y
StatisticsMatrix objects are null.
Validates that input data is not null when passed into a Regression functional concrete class . @param data as RegressionRawData class which holds X and Y data @throws IllegalArgumentException if data or it ' s contained X or Y StatisticsMatrix objects are null .
protected void validateLoadedInputData(RegressionData data) {
        if (data == null) {
            throw new IllegalArgumentException("RegressionData object is null.");
        }
        if (data.getY() == null) {
            throw new IllegalArgumentException("Y data is null.");
        }
        if (data.getX() == null) {
            throw new IllegalArgumentException("X data is null.");
        }
    }
protected void validateLoadedInputData ( RegressionData data ) { if ( data == null ) { throw new IllegalArgumentException ( "RegressionData object is null." ) ; } if ( data . getY ( ) == null ) { throw new IllegalArgumentException ( "Y data is null." ) ; } if ( data . getX ( ) == null ) { throw new IllegalArgumentException ( "X data is null." ) ; } }
Validates that input data is not null when passed into a Regression
 functional concrete class.
Validates that input data is not null when passed into a Regression functional concrete class .