public class Maths extends Object
| Constructor and Description |
|---|
Maths() |
| Modifier and Type | Method and Description |
|---|---|
static byte |
adjustToRange(byte value,
byte min,
byte max) |
static double |
adjustToRange(double value,
double min,
double max) |
static float |
adjustToRange(float value,
float min,
float max) |
static int |
adjustToRange(int value,
int min,
int max) |
static long |
adjustToRange(long value,
long min,
long max) |
static short |
adjustToRange(short value,
short min,
short max) |
static double |
averageByte(Byte... values) |
static double |
averageByte(Collection<Byte> values) |
static double |
averageDouble(Collection<Double> values) |
static double |
averageDouble(Double... values) |
static double |
averageFloat(Collection<Float> values) |
static double |
averageFloat(Float... values) |
static double |
averageInteger(Collection<Integer> values) |
static double |
averageInteger(Integer... values) |
static double |
averageLong(Collection<Long> values) |
static double |
averageLong(Long... values) |
static double |
averageShort(Collection<Short> values) |
static double |
averageShort(Short... values) |
static double |
distance(double x1,
double y1,
double x2,
double y2) |
static double |
distance(double x1,
double y1,
double z1,
double x2,
double y2,
double z2) |
static double |
distance(int x1,
int y1,
int x2,
int y2) |
static double |
distance(int x1,
int y1,
int z1,
int x2,
int y2,
int z2) |
static double |
distance(Point2D p1,
Point2D p2) |
static double |
distance(Point3D p1,
Point3D p2) |
static MinMaxValue<Byte> |
minMaxByte(Byte... values) |
static MinMaxValue<Byte> |
minMaxByte(Collection<Byte> values) |
static MinMaxValue<Double> |
minMaxDouble(Collection<Double> values) |
static MinMaxValue<Double> |
minMaxDouble(Double... values) |
static MinMaxValue<Float> |
minMaxFloat(Collection<Float> values) |
static MinMaxValue<Float> |
minMaxFloat(Float... values) |
static MinMaxValue<Integer> |
minMaxInteger(Collection<Integer> values) |
static MinMaxValue<Integer> |
minMaxInteger(Integer... values) |
static MinMaxValue<Long> |
minMaxLong(Collection<Long> values) |
static MinMaxValue<Long> |
minMaxLong(Long... values) |
static MinMaxValue<Short> |
minMaxShort(Collection<Short> values) |
static MinMaxValue<Short> |
minMaxShort(Short... values) |
static double |
normalize(byte value,
byte minValue,
byte maxValue) |
static double |
normalize(double value,
double minValue,
double maxValue) |
static double |
normalize(float value,
float minValue,
float maxValue) |
static double |
normalize(int value,
int minValue,
int maxValue) |
static double |
normalize(long value,
long minValue,
long maxValue) |
static double |
normalize(short value,
short minValue,
short maxValue) |
static Collection<Double> |
normalizeByte(Byte... values) |
static Collection<Double> |
normalizeByte(Collection<Byte> values) |
static Collection<Double> |
normalizeDouble(Collection<Double> values) |
static List<Double> |
normalizeDouble(Double... values) |
static Collection<Double> |
normalizeFloat(Collection<Float> values) |
static Collection<Double> |
normalizeFloat(Float... values) |
static Collection<Double> |
normalizeInt(Collection<Integer> values) |
static Collection<Double> |
normalizeInt(Integer... values) |
static Collection<Double> |
normalizeLong(Collection<Long> values) |
static Collection<Double> |
normalizeLong(Long... values) |
static Collection<Double> |
normalizeShort(Collection<Short> values) |
static Collection<Double> |
normalizeShort(Short... values) |
static byte |
parseByte(String value) |
static byte |
parseByte(String value,
ParseContext context) |
static double |
parseDouble(String value) |
static double |
parseDouble(String value,
ParseContext context) |
static float |
parseFloat(String value) |
static float |
parseFloat(String value,
ParseContext context) |
static int |
parseInteger(String value) |
static int |
parseInteger(String value,
ParseContext context) |
static long |
parseLong(String value) |
static long |
parseLong(String value,
ParseContext context) |
static short |
parseShort(String value) |
static short |
parseShort(String value,
ParseContext context) |
static byte |
random(byte lowerRange,
byte upperRange) |
static byte |
random(byte lowerRange,
byte upperRange,
Generator generator) |
static double |
random(double lowerRange,
double upperRange) |
static double |
random(double lowerRange,
double upperRange,
Generator generator) |
static float |
random(float lowerRange,
float upperRange) |
static float |
random(float lowerRange,
float upperRange,
Generator generator) |
static int |
random(int lowerRange,
int upperRange) |
static int |
random(int lowerRange,
int upperRange,
Generator generator) |
static long |
random(long lowerRange,
long upperRange) |
static long |
random(long lowerRange,
long upperRange,
Generator generator) |
static short |
random(short lowerRange,
short upperRange) |
static short |
random(short lowerRange,
short upperRange,
Generator generator) |
static double |
standardDeviationByte(Byte... values) |
static double |
standardDeviationByte(Collection<Byte> values) |
static double |
standardDeviationDouble(Collection<Double> values) |
static double |
standardDeviationDouble(Double... values) |
static double |
standardDeviationFloat(Collection<Float> values) |
static double |
standardDeviationFloat(Float... values) |
static double |
standardDeviationInteger(Collection<Integer> values) |
static double |
standardDeviationInteger(Integer... values) |
static double |
standardDeviationLong(Collection<Long> values) |
static double |
standardDeviationLong(Long... values) |
static double |
standardDeviationShort(Collection<Short> values) |
static double |
standardDeviationShort(Short... values) |
static double |
varianceByte(Byte... values) |
static double |
varianceByte(Collection<Byte> values) |
static double |
varianceDouble(Collection<Double> values) |
static double |
varianceDouble(Double... values) |
static double |
varianceFloat(Collection<Float> values) |
static double |
varianceFloat(Float... values) |
static double |
varianceInteger(Collection<Integer> values) |
static double |
varianceInteger(Integer... values) |
static double |
varianceLong(Collection<Long> values) |
static double |
varianceLong(Long... values) |
static double |
varianceShort(Collection<Short> values) |
static double |
varianceShort(Short... values) |
public static byte random(byte lowerRange,
byte upperRange)
public static byte random(byte lowerRange,
byte upperRange,
Generator generator)
public static short random(short lowerRange,
short upperRange)
public static short random(short lowerRange,
short upperRange,
Generator generator)
public static int random(int lowerRange,
int upperRange)
public static int random(int lowerRange,
int upperRange,
Generator generator)
public static long random(long lowerRange,
long upperRange)
public static long random(long lowerRange,
long upperRange,
Generator generator)
public static float random(float lowerRange,
float upperRange)
public static float random(float lowerRange,
float upperRange,
Generator generator)
public static double random(double lowerRange,
double upperRange)
public static double random(double lowerRange,
double upperRange,
Generator generator)
public static double distance(int x1,
int y1,
int x2,
int y2)
public static double distance(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
public static double distance(double x1,
double y1,
double x2,
double y2)
public static double distance(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
public static byte parseByte(String value)
public static byte parseByte(String value, ParseContext context)
public static short parseShort(String value)
public static short parseShort(String value, ParseContext context)
public static int parseInteger(String value)
public static int parseInteger(String value, ParseContext context)
public static long parseLong(String value)
public static long parseLong(String value, ParseContext context)
public static float parseFloat(String value)
public static float parseFloat(String value, ParseContext context)
public static double parseDouble(String value)
public static double parseDouble(String value, ParseContext context)
public static double normalize(byte value,
byte minValue,
byte maxValue)
public static double normalize(short value,
short minValue,
short maxValue)
public static double normalize(int value,
int minValue,
int maxValue)
public static double normalize(long value,
long minValue,
long maxValue)
public static double normalize(float value,
float minValue,
float maxValue)
public static double normalize(double value,
double minValue,
double maxValue)
public static MinMaxValue<Byte> minMaxByte(Collection<Byte> values)
public static MinMaxValue<Short> minMaxShort(Collection<Short> values)
public static MinMaxValue<Integer> minMaxInteger(Collection<Integer> values)
public static MinMaxValue<Long> minMaxLong(Collection<Long> values)
public static MinMaxValue<Float> minMaxFloat(Collection<Float> values)
public static MinMaxValue<Double> minMaxDouble(Collection<Double> values)
public static MinMaxValue<Byte> minMaxByte(Byte... values)
public static MinMaxValue<Short> minMaxShort(Short... values)
public static MinMaxValue<Integer> minMaxInteger(Integer... values)
public static MinMaxValue<Long> minMaxLong(Long... values)
public static MinMaxValue<Float> minMaxFloat(Float... values)
public static MinMaxValue<Double> minMaxDouble(Double... values)
public static Collection<Double> normalizeByte(Collection<Byte> values)
public static Collection<Double> normalizeShort(Collection<Short> values)
public static Collection<Double> normalizeInt(Collection<Integer> values)
public static Collection<Double> normalizeLong(Collection<Long> values)
public static Collection<Double> normalizeFloat(Collection<Float> values)
public static Collection<Double> normalizeDouble(Collection<Double> values)
public static Collection<Double> normalizeByte(Byte... values)
public static Collection<Double> normalizeShort(Short... values)
public static Collection<Double> normalizeInt(Integer... values)
public static Collection<Double> normalizeLong(Long... values)
public static Collection<Double> normalizeFloat(Float... values)
public static byte adjustToRange(byte value,
byte min,
byte max)
public static short adjustToRange(short value,
short min,
short max)
public static int adjustToRange(int value,
int min,
int max)
public static long adjustToRange(long value,
long min,
long max)
public static float adjustToRange(float value,
float min,
float max)
public static double adjustToRange(double value,
double min,
double max)
public static double averageByte(Collection<Byte> values)
public static double averageShort(Collection<Short> values)
public static double averageInteger(Collection<Integer> values)
public static double averageLong(Collection<Long> values)
public static double averageFloat(Collection<Float> values)
public static double averageDouble(Collection<Double> values)
public static double averageByte(Byte... values)
public static double averageShort(Short... values)
public static double averageInteger(Integer... values)
public static double averageLong(Long... values)
public static double averageFloat(Float... values)
public static double averageDouble(Double... values)
public static double varianceByte(Collection<Byte> values)
public static double varianceShort(Collection<Short> values)
public static double varianceInteger(Collection<Integer> values)
public static double varianceLong(Collection<Long> values)
public static double varianceFloat(Collection<Float> values)
public static double varianceDouble(Collection<Double> values)
public static double varianceByte(Byte... values)
public static double varianceShort(Short... values)
public static double varianceInteger(Integer... values)
public static double varianceLong(Long... values)
public static double varianceFloat(Float... values)
public static double varianceDouble(Double... values)
public static double standardDeviationByte(Collection<Byte> values)
public static double standardDeviationShort(Collection<Short> values)
public static double standardDeviationInteger(Collection<Integer> values)
public static double standardDeviationLong(Collection<Long> values)
public static double standardDeviationFloat(Collection<Float> values)
public static double standardDeviationDouble(Collection<Double> values)
public static double standardDeviationByte(Byte... values)
public static double standardDeviationShort(Short... values)
public static double standardDeviationInteger(Integer... values)
public static double standardDeviationLong(Long... values)
public static double standardDeviationFloat(Float... values)
public static double standardDeviationDouble(Double... values)
Copyright © 2015 jsolve. All rights reserved.