|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.utils.Normalisation
public class Normalisation
This class can be used for normalisation of any double array or a part of a double array.
Constructor Summary | |
---|---|
Normalisation()
|
Method Summary | |
---|---|
static double |
getLogSum(double... lnVal)
Returns the log of the sum of values. |
static double |
getLogSum(int start,
int end,
double... lnVal)
Returns the log of the sum of values. |
static double |
logSumNormalisation(double[] d)
log-sum-normalisation on d |
static double |
logSumNormalisation(double[] d,
double offset)
log-sum-normalisation on d using offset offset |
static double |
logSumNormalisation(double[] d,
int startD,
int endD)
log-sum-normalisation on d between startD and endD |
static double |
logSumNormalisation(double[] d,
int startD,
int endD,
double[] secondValues)
log-sum-normalisation on d between startD and endD |
static double |
logSumNormalisation(double[] d,
int startD,
int endD,
double[] secondValues,
double[] dest,
int startDest)
log-sum-normalisation on d between startD and endD , writing the
result in dest starting at position startDest |
static double |
logSumNormalisation(double[] d,
int startD,
int endD,
double[] dest,
int startDest)
log-sum-normalisation on d between startD and endD , writing the
result in dest starting at position startDest |
static double |
logSumNormalisation(double[] d,
int startD,
int endD,
double offset,
double[] secondValues,
double[] dest,
int startDest)
log-sum-normalisation on d , writing the result in dest starting at position
start using offset |
static double |
logSumNormalisation(double[] d,
int startD,
int endD,
double offset,
double[] dest,
int start)
log-sum-normalisation on d between startD and endD , writing the
result in dest starting at position startDest using offset offset |
static void |
normalisation(double[] d,
double v)
normalisation on d , using the value v to normalize |
static void |
normalisation(double[] d,
double v,
double[] dest,
int start)
sum normalisation on d , writing the result in dest starting at position start
using the value |
static void |
normalisation(double[] d,
double v,
int start,
int end)
sum normalisation on d , starting at position start, stopping at position
|
static double |
sumNormalisation(double[] d)
sum normailsation on d |
static double |
sumNormalisation(double[] d,
double[] dest,
int start)
sum normalisation on d , writing the result in dest starting at position start
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Normalisation()
Method Detail |
---|
public static double getLogSum(double... lnVal)
lnVal
- the logs of the values, i.e. lnVal[i] = Math.log( val[i] )
public static double getLogSum(int start, int end, double... lnVal)
start
- the first index in lnVal considered for the sumend
- the index after the last index considered for the sumlnVal
- the logs of the values, i.e. lnVal[i] = Math.log( val[i] )
public static double logSumNormalisation(double[] d)
d
d
public static double logSumNormalisation(double[] d, int startD, int endD)
d
between startD
and endD
d
between startD
and endD
public static double logSumNormalisation(double[] d, int startD, int endD, double[] secondValues)
d
between startD
and endD
d
between startD
and endD
and
secondValue
public static double logSumNormalisation(double[] d, int startD, int endD, double[] dest, int startDest)
d
between startD
and endD
, writing the
result in dest
starting at position startDest
d
between startD
and endD
public static double logSumNormalisation(double[] d, int startD, int endD, double[] secondValues, double[] dest, int startDest)
d
between startD
and endD
, writing the
result in dest
starting at position startDest
d
between startD
and endD
public static double logSumNormalisation(double[] d, double offset)
d
using offset offset
d
public static double logSumNormalisation(double[] d, int startD, int endD, double offset, double[] dest, int start)
d
between startD
and endD
, writing the
result in dest
starting at position startDest
using offset offset
d
between startD
and endD
public static double logSumNormalisation(double[] d, int startD, int endD, double offset, double[] secondValues, double[] dest, int startDest)
d
, writing the result in dest
starting at position
start using offset offset
- Returns:
- the sum of
d
public static double sumNormalisation(double[] d)
d
public static double sumNormalisation(double[] d, double[] dest, int start)
d
, writing the result in dest
starting at position start
- Returns:
- the sum of d
public static void normalisation(double[] d, double v)
d
, using the value v
to normalize
public static void normalisation(double[] d, double v, double[] dest, int start)
d
, writing the result in dest
starting at position start
using the value v
to normalize
public static void normalisation(double[] d, double v, int start, int end)
d
, starting at position start, stopping at position
end
, using the value v
to normalize
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |