public static Double meanDifference(NumericColumn<?> column1, NumericColumn<?> column2) { return StatUtils.meanDifference(column1.asDoubleArray(), column2.asDoubleArray()); }
NumberIsTooSmallException, MaxCountExceededException { double meanDifference = StatUtils.meanDifference(sample1, sample2); return tTest(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
double meanDifference = StatUtils.meanDifference(sample1, sample2); return t(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
@Override public Object doWork(Object first, Object second) throws IOException{ if(null == first){ throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - null found for the first value",toExpression(constructingFactory))); } if(null == second){ throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - null found for the second value",toExpression(constructingFactory))); } if(!(first instanceof List<?>)){ throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - found type %s for the first value, expecting a list of numbers",toExpression(constructingFactory), first.getClass().getSimpleName())); } if(!(second instanceof List<?>)){ throw new IOException(String.format(Locale.ROOT,"Invalid expression %s - found type %s for the second value, expecting a list of numbers",toExpression(constructingFactory), first.getClass().getSimpleName())); } return StatUtils.meanDifference( ((List) first).stream().mapToDouble(value -> ((Number) value).doubleValue()).toArray(), ((List) second).stream().mapToDouble(value -> ((Number) value).doubleValue()).toArray() ); } }
public static Double meanDifference(NumericColumn<?> column1, NumericColumn<?> column2) { return StatUtils.meanDifference(column1.asDoubleArray(), column2.asDoubleArray()); }
public static double meanDifference(FloatColumn column1, FloatColumn column2) { return StatUtils.meanDifference(column1.toDoubleArray(), column2.toDoubleArray()); }
NumberIsTooSmallException, MaxCountExceededException { double meanDifference = StatUtils.meanDifference(sample1, sample2); return tTest(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
NumberIsTooSmallException, MaxCountExceededException { double meanDifference = StatUtils.meanDifference(sample1, sample2); return tTest(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
double meanDifference = StatUtils.meanDifference(sample1, sample2); return t(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
double meanDifference = StatUtils.meanDifference(sample1, sample2); return t(meanDifference, 0, StatUtils.varianceDifference(sample1, sample2, meanDifference),
meanDifference = StatUtils.meanDifference(sample1, sample2); sdDifference = Math.sqrt(StatUtils.varianceDifference(sample1, sample2, meanDifference));
meanDifference = StatUtils.meanDifference(sample1, sample2); se = Math.sqrt(StatUtils.varianceDifference(sample1, sample2, meanDifference) / n1);