Java Code Examples for org.apache.commons.math3.stat.descriptive.StatisticalSummary#getN()

The following examples show how to use org.apache.commons.math3.stat.descriptive.StatisticalSummary#getN() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 2
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 3
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 4
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 5
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 6
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 7
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}
 
Example 8
Source File: TTest.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check sample data.
 *
 * @param stat Statistical summary.
 * @throws NullArgumentException if {@code data} is {@code null}.
 * @throws NumberIsTooSmallException if there is not enough sample data.
 */
private void checkSampleData(final StatisticalSummary stat)
    throws NullArgumentException, NumberIsTooSmallException {

    if (stat == null) {
        throw new NullArgumentException();
    }
    if (stat.getN() < 2) {
        throw new NumberIsTooSmallException(
                LocalizedFormats.INSUFFICIENT_DATA_FOR_T_STATISTIC,
                stat.getN(), 2, true);
    }

}