List of usage examples for org.apache.commons.math.stat.inference TTestImpl t
public double t(StatisticalSummary sampleStats1, StatisticalSummary sampleStats2) throws IllegalArgumentException
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; }