Class CorrelationStatsTest
java.lang.Object
ubic.gemma.core.util.math.CorrelationStatsTest
Unit tests for
CorrelationStats — the static stats facade used across
coexpression, batch-confound detection, and PCA-correlate analyses. Covers the
deterministic, lookup-free entry points: byte encoding/decoding, Fisher
transform + inverse, validity check, and edge cases of p-value computation.- Author:
- claude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
CorrelationStatsTest
public CorrelationStatsTest()
-
-
Method Details
-
correlAsByte_zero_isOneBelowHalfRange
@Test public void correlAsByte_zero_isOneBelowHalfRange() -
correlAsByte_atOne_maps255
@Test public void correlAsByte_atOne_maps255() -
correlAsByte_atNegativeOne_maps0
@Test public void correlAsByte_atNegativeOne_maps0() -
byteToCorrel_zero_returnsNegativeOne
@Test public void byteToCorrel_zero_returnsNegativeOne() -
byteToCorrel_128_returnsZero
@Test public void byteToCorrel_128_returnsZero() -
byteToCorrel_255_returnsAlmostOne
@Test public void byteToCorrel_255_returnsAlmostOne() -
correlAsByte_byteToCorrel_roundTrip_isLossyButBounded
@Test public void correlAsByte_byteToCorrel_roundTrip_isLossyButBounded() -
fisherTransform_atZero_returnsZero
@Test public void fisherTransform_atZero_returnsZero() -
fisherTransform_atOne_returnsPositiveInfinity
@Test public void fisherTransform_atOne_returnsPositiveInfinity() -
fisherTransform_atNegativeOne_returnsPositiveInfinity
@Test public void fisherTransform_atNegativeOne_returnsPositiveInfinity() -
fisherTransform_atHalf_isClassicValue
@Test public void fisherTransform_atHalf_isClassicValue() -
fisherTransform_outOfRange_throws
@Test public void fisherTransform_outOfRange_throws() -
fisherTransform_list_appliesPerElement
@Test public void fisherTransform_list_appliesPerElement() -
unFisherTransform_invertsFisherTransform
@Test public void unFisherTransform_invertsFisherTransform() -
isValidPearsonCorrelation_acceptsInRangeValues
@Test public void isValidPearsonCorrelation_acceptsInRangeValues() -
isValidPearsonCorrelation_rejectsOutOfRangeValues
@Test public void isValidPearsonCorrelation_rejectsOutOfRangeValues() -
isValidPearsonCorrelation_acceptsTinyRoundoffOutsideRange
@Test public void isValidPearsonCorrelation_acceptsTinyRoundoffOutsideRange() -
pvalue_atPerfectCorrelation_isZero
@Test public void pvalue_atPerfectCorrelation_isZero() -
pvalue_atZeroCorrelation_isOne
@Test public void pvalue_atZeroCorrelation_isOne() -
pvalue_insufficientDof_isOne
@Test public void pvalue_insufficientDof_isOne() -
correlationTstat_atZero_isZero
@Test public void correlationTstat_atZero_isZero() -
correlationTstat_sign_matchesCorrelationSign
@Test public void correlationTstat_sign_matchesCorrelationSign()
-