jas.hist
Class JASHistUtil

java.lang.Object
  extended by jas.hist.JASHistUtil

public class JASHistUtil
extends Object


Constructor Summary
JASHistUtil()
           
 
Method Summary
static double roundDown(double x, int order)
          Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0
static double roundUp(double x, int order)
          Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JASHistUtil

public JASHistUtil()
Method Detail

roundDown

public static double roundDown(double x,
                               int order)
Round number down (closer to Negative Infinity): "order" defines which significant digit is rounded, order >= 0 roundDown(234.5, 0) -> 200.0 roundDown(234.5, 1) -> 230.0 roundDown(234.5, 2) -> 234.0


roundUp

public static double roundUp(double x,
                             int order)
Round number up (closer to Positive Infinity), "order" defines which significant digit is rounded, order >= 0 roundUp(234.5, 0) -> 300.0 roundUp(234.5, 1) -> 240.0 roundUp(234.5, 2) -> 235.0



Copyright © 2000-2009 FreeHEP. All Rights Reserved.