Example usage for org.apache.commons.math.stat.inference TTestImpl t

List of usage examples for org.apache.commons.math.stat.inference TTestImpl t

Introduction

In this page you can find the example usage for org.apache.commons.math.stat.inference TTestImpl t.

Prototype

public double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2)
        throws IllegalArgumentException 

Source Link

Document

Computes a 2-sample t statistic , comparing the means of the datasets described by two StatisticalSummary instances, without the assumption of equal subpopulation variances.

Usage

From source file:gephi.spade.panel.FCSOperations.java

/**
 * T-distribution between selected nodes and all nodes
 *//*  w  w  w  .j av  a2  s.  co m*/
private double tTest(Array2DRowRealMatrix selectedEvents, Array2DRowRealMatrix allEvents, int attribute) {

    TTestImpl tTest = new TTestImpl();
    try {
        return tTest.t(selectedEvents.getDataRef()[attribute], allEvents.getDataRef()[attribute]);
    } catch (IllegalArgumentException ex) {
        //CyLogger.getLogger(FCSOperations.class.getName()).error(null, ex);
    }
    return 0.0;
}