![JAR search and dependency download from the Maven repository](/logo.png)
com.google.common.math.DoubleMath.class Maven / Gradle / Ivy
???? 4, ?
? ? ?
? X ?
v ?
?
? ?
? ?
? ???
? ? ?
?
? ??? A?
? ??? C?
? ?
? ?
?
? ?
? ?
? ? ? ?
? ?
?C0
?
?
?@
? ? ?
? ? ?? ? ?
? ?
0 ?
?
? ? ?
? ? ?
? ? ? ? ? ?
? ?
? ?
W ?B?wu? GIV?
?3?L??x?,?Ro?x?4?JX?a?????_c?cGe??????l????@??s?΅??p~{ ]_=??? ? ? InnerClasses MIN_INT_AS_DOUBLE D
ConstantValue?? MAX_INT_AS_DOUBLEA????? MIN_LONG_AS_DOUBLE MAX_LONG_AS_DOUBLE_PLUS_ONE LN_2
MAX_FACTORIAL I ? RuntimeInvisibleAnnotations 1Lcom/google/common/annotations/VisibleForTesting; everySixteenthFactorial [D roundIntermediate (DLjava/math/RoundingMode;)D Code LineNumberTable LocalVariableTable z x mode Ljava/math/RoundingMode;
StackMapTable ? MethodParameters /Lcom/google/common/annotations/GwtIncompatible;
roundToInt (DLjava/math/RoundingMode;)I roundToLong (DLjava/math/RoundingMode;)J roundToBigInteger 1(DLjava/math/RoundingMode;)Ljava/math/BigInteger; exponent significand J result Ljava/math/BigInteger; ? isPowerOfTwo (D)Z log2 (D)D increment Z xScaled isMathematicalInteger factorial (I)D i accum n fuzzyEquals (DDD)Z a b tolerance fuzzyCompare (DDD)I mean ([D)D index values count
Deprecated RuntimeVisibleAnnotations Ljava/lang/Deprecated; ([I)D [I sum ([J)D [J (Ljava/lang/Iterable;)D Ljava/lang/Iterable; LocalVariableTypeTable )Ljava/lang/Iterable<+Ljava/lang/Number;>; Signature ,(Ljava/lang/Iterable<+Ljava/lang/Number;>;)D (Ljava/util/Iterator;)D value Ljava/util/Iterator; )Ljava/util/Iterator<+Ljava/lang/Number;>; ,(Ljava/util/Iterator<+Ljava/lang/Number;>;)D checkFinite argument 8Lcom/google/errorprone/annotations/CanIgnoreReturnValue; ()V this #Lcom/google/common/math/DoubleMath;
SourceFile DoubleMath.java 8Lcom/google/common/math/ElementTypesAreNonnullByDefault; -Lcom/google/common/annotations/GwtCompatible; emulated "com/google/common/math/DoubleUtils ? ? java/lang/ArithmeticException input is infinite or NaN ? ? ? ? ? ? ? ? ? ? ? ? java/lang/AssertionError ? ? l m !com/google/common/math/DoubleMath
? d [ x must be positive and finite ? ? z ? ? ? java/lang/Double j k ? ? ? ! Cannot take mean of 0 values ? ?"#$ ? ?%&'() java/lang/Number*+ java/lang/Object #com/google/common/math/DoubleMath$1 java/math/RoundingMode java/math/BigInteger isFinite (Ljava/lang/String;)V !$SwitchMap$java$math$RoundingMode ordinal ()I (com/google/common/math/MathPreconditions checkRoundingUnnecessary (Z)V java/lang/Math rint abs copySign (DD)D checkInRangeForRoundingInputs (ZDLjava/math/RoundingMode;)V valueOf (J)Ljava/math/BigInteger; getExponent (D)I getSignificand (D)J shiftLeft (I)Ljava/math/BigInteger; negate ()Ljava/math/BigInteger; log $com/google/common/base/Preconditions
checkArgument (ZLjava/lang/Object;)V isNormal scaleNormalize java/lang/Long numberOfTrailingZeros (J)I checkNonNegative (Ljava/lang/String;I)I (Ljava/lang/String;D)D isNaN %com/google/common/primitives/Booleans compare (ZZ)I java/lang/Iterable iterator ()Ljava/util/Iterator; java/util/Iterator hasNext ()Z next ()Ljava/lang/Object; doubleValue ()D 1 W Z [ \ ] _ [ \ ` b [ \ c [ \ d [ e f \ g h i j k h i l m n ? ?&? ?
? Y? ?? ,? .? ? / 8 M b d ~ ? ?&? ? &?&??
&? ? &?&?
e??&??
&? ? &?&?
a??&?&? ? &?&?&?? ? ?a??&?
?&?
J&)g? ??
& &? c?)?&?
J&)g? ?? &?)?? Y? ? o f 9 : <