Examples of median()


Examples of fork.lib.math.applied.stat.Distribution.median()

    ArrayList<Double> qs= d.quantileBoundaries(100);
    double m=0 ,sd=0;
    for( int i=0; i<50; i++ ){
        Distribution df= d.subset(qs.get(i), qs.get(qs.size()-1-i), true, true);
        m= df.mean();
        double med= df.median();
        sd= df.standartDeviation();
        double z= sd/m;
        //System.out.println(i+"   mean: "+m+"   med: "+med+"   sd: "+ sd+"  z:"+z);
        if(z<0.2){
            break;
View Full Code Here

Examples of fork.lib.math.applied.stat.Distribution.median()

   
protected void init() throws Exception{
    Distribution d= new Distribution();
    d.add(lbf.getDistribution());
    d.add(lbr.getDistribution());
    double med= Math.ceil( d.median() *1.7 );
    double sd= d.standartDeviation();
    System.out.println("med:  "+med +"    sd:  "+sd);
    //d.print(); System.exit(1);
    new LandscapeTransformer(lbf).subtract(med);
    new LandscapeTransformer(lbr).subtract(med);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

  public void testMedianWithValidRange() throws Throwable {
    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY, TEST_QUALIFIER);
    final ColumnInterpreter<BigDecimal, BigDecimal> ci = new BigDecimalColumnInterpreter();
    BigDecimal median = aClient.median(TEST_TABLE, ci, scan);
    assertEquals(new BigDecimal("8.00"), median);
  }

  /**
   * ***************Test cases for Maximum *******************
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

  public void testMedianWithValidRange() throws Throwable {
    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY,TEST_QUALIFIER);
    final ColumnInterpreter<Long, Long> ci = new LongColumnInterpreter();
    long median = aClient.median(TEST_TABLE, ci,
        scan);
    assertEquals(8L, median);
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY, TEST_QUALIFIER);
    final ColumnInterpreter<BigDecimal, BigDecimal, EmptyMsg, BigDecimalMsg, BigDecimalMsg> ci =
      new BigDecimalColumnInterpreter();
    BigDecimal median = aClient.median(TEST_TABLE, ci, scan);
    assertEquals(new BigDecimal("8.00"), median);
  }

  /**
   * ***************Test cases for Maximum *******************
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY,TEST_QUALIFIER);
    final ColumnInterpreter<Long, Long, EmptyMsg, LongMsg, LongMsg> ci =
        new LongColumnInterpreter();
    long median = aClient.median(TEST_TABLE, ci,
        scan);
    assertEquals(8L, median);
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY, TEST_QUALIFIER);
    final ColumnInterpreter<Double, Double, EmptyMsg, DoubleMsg, DoubleMsg> ci =
        new DoubleColumnInterpreter();
    double median = aClient.median(TEST_TABLE, ci, scan);
    assertEquals(8.00, median, 0.00);
  }

  /**
   * ***************Test cases for Maximum *******************
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY, TEST_QUALIFIER);
    final ColumnInterpreter<BigDecimal, BigDecimal, EmptyMsg, BigDecimalMsg, BigDecimalMsg> ci =
      new BigDecimalColumnInterpreter();
    BigDecimal median = aClient.median(TEST_TABLE, ci, scan);
    assertEquals(new BigDecimal("8.00"), median);
  }

  /**
   * ***************Test cases for Maximum *******************
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY,TEST_QUALIFIER);
    final ColumnInterpreter<Long, Long, EmptyMsg, LongMsg, LongMsg> ci =
        new LongColumnInterpreter();
    long median = aClient.median(TEST_TABLE, ci,
        scan);
    assertEquals(8L, median);
  }

  /**
 
View Full Code Here

Examples of org.apache.hadoop.hbase.client.coprocessor.AggregationClient.median()

    AggregationClient aClient = new AggregationClient(conf);
    Scan scan = new Scan();
    scan.addColumn(TEST_FAMILY,TEST_QUALIFIER);
    final ColumnInterpreter<Long, Long, EmptyMsg, LongMsg, LongMsg> ci =
        new LongColumnInterpreter();
    long median = aClient.median(TEST_TABLE, ci,
        scan);
    assertEquals(8L, median);
  }

  /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.