public class General extends Object
Modifier and Type | Field and Description |
---|---|
static double |
M_2PI |
Constructor and Description |
---|
General() |
Modifier and Type | Method and Description |
---|---|
static double |
computeCorrelationCoefficient(double[] X1,
double[] X2) |
static double |
computeMedian(double[] values) |
static float |
computeMedian(float[] values) |
static double |
computeTurkeyBiAverage(double[] conc) |
static double |
computeTurkeyBiAverage(double[] conc,
double c) |
static double |
computeTurkeyBiAverage(double[] conc,
double[] W,
double c) |
static double |
computeTurkeyBiMedian(double[] concinput,
double c) |
static float |
computeTurkeyBiMedian(float[] concinput,
float c) |
static double[] |
computeTurkeyBiMedianWeights(double[] concinput,
double c) |
static double |
Exp10(double x) |
static int |
flipInRange(int a,
int mod)
return a integer that is flipped in the range [0 ...
|
static double |
gLog(double z,
double c) |
static double |
gLogInv(double w,
double c) |
static boolean |
isApproxEqual(double a,
double b,
double threshold) |
static int |
ldu(int v)
fast floor ld of unsigned v
|
static double |
Log10(double x) |
static double |
max(double a,
double b) |
static float |
max(float a,
float b) |
static int |
max(int a,
int b) |
static double |
min(double a,
double b) |
static float |
min(float a,
float b) |
static int |
min(int a,
int b) |
static int |
offsetToPowerOf2(int size)
Berechnet die Differenz(Offset) der ganzzahligen Eingabe zur naechsten Zweierpotenz.
|
static int |
pow(int a,
int b) |
static void |
quicksort(double[] data,
int[] sortAlso,
int left,
int right) |
static void |
quicksort(double[] data,
int left,
int right) |
static void |
quicksort(float[] data,
int left,
int right) |
static void |
quicksort(float[] data,
Point[] sortAlso,
int left,
int right) |
static void |
quicksort(Quicksortable[] data,
int left,
int right) |
static void |
quicksort(Vector data,
int left,
int right) |
static int |
sign(double value) |
static double |
sq(double a)
simple square
|
static float |
sq(float a) |
public static final double M_2PI
public static double sq(double a)
a
- public static float sq(float a)
public static int ldu(int v)
public static int flipInRange(int a, int mod)
a
- the value to be flippedmod
- the size of the rangepublic static int sign(double value)
public static boolean isApproxEqual(double a, double b, double threshold)
public static double computeCorrelationCoefficient(double[] X1, double[] X2)
public static int min(int a, int b)
public static double min(double a, double b)
public static float min(float a, float b)
public static int max(int a, int b)
public static float max(float a, float b)
public static double max(double a, double b)
public static int offsetToPowerOf2(int size)
size
- ganzzahliger Eingabewertpublic static double gLog(double z, double c)
public static double gLogInv(double w, double c)
public static double Log10(double x)
public static double Exp10(double x)
public static int pow(int a, int b)
public static double computeTurkeyBiAverage(double[] conc)
public static double computeTurkeyBiAverage(double[] conc, double c)
public static double computeTurkeyBiAverage(double[] conc, double[] W, double c)
public static double computeTurkeyBiMedian(double[] concinput, double c)
public static float computeTurkeyBiMedian(float[] concinput, float c)
public static double[] computeTurkeyBiMedianWeights(double[] concinput, double c)
public static double computeMedian(double[] values)
public static float computeMedian(float[] values)
public static void quicksort(double[] data, int left, int right)
public static void quicksort(float[] data, int left, int right)
public static void quicksort(Quicksortable[] data, int left, int right)
public static void quicksort(Vector data, int left, int right)
public static void quicksort(float[] data, Point[] sortAlso, int left, int right)
public static void quicksort(double[] data, int[] sortAlso, int left, int right)
Copyright © 2015–2021 Fiji. All rights reserved.