Java Code Examples for org.apache.commons.math3.stat.ranking.NaNStrategy#FIXED

The following examples show how to use org.apache.commons.math3.stat.ranking.NaNStrategy#FIXED . 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: MedianTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
private Median getTestMedian(EstimationType type) {
    NaNStrategy strategy = (type == LEGACY) ? NaNStrategy.FIXED : NaNStrategy.REMOVED;
    return new Median().withEstimationType(type).withNaNStrategy(strategy);
}
 
Example 2
Source File: PercentileTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
private void reset(final double p, final Percentile.EstimationType type) {
    this.quantile = p;
    this.type     = type;
    nanStrategy   = (type == Percentile.EstimationType.LEGACY) ? NaNStrategy.FIXED : NaNStrategy.REMOVED;
}
 
Example 3
Source File: PercentileTest.java    From astor with GNU General Public License v2.0 4 votes vote down vote up
private void reset(final double p, final Percentile.EstimationType type) {
    this.quantile = p;
    this.type     = type;
    nanStrategy   = (type == Percentile.EstimationType.LEGACY) ? NaNStrategy.FIXED : NaNStrategy.REMOVED;
}
 
Example 4
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 5
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 6
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 7
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 8
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 9
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 10
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 11
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 12
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 13
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 14
Source File: MannWhitneyUTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 15
Source File: WilcoxonSignedRankTest.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Create a test instance where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure
 * of what you are doing.
 */
public WilcoxonSignedRankTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 16
Source File: patchedMannWhitneyUTest.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 17
Source File: buggyMannWhitneyUTest.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 18
Source File: Math_30_MannWhitneyUTest_s.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 19
Source File: Math_30_MannWhitneyUTest_t.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}
 
Example 20
Source File: Elixir_0022_s.java    From coming with MIT License 2 votes vote down vote up
/**
 * Create a test instance using where NaN's are left in place and ties get
 * the average of applicable ranks. Use this unless you are very sure of
 * what you are doing.
 */
public MannWhitneyUTest() {
    naturalRanking = new NaturalRanking(NaNStrategy.FIXED,
            TiesStrategy.AVERAGE);
}