|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.function.DoubleFunction
org.apache.mahout.ep.Mapping
public abstract class Mapping
Provides coordinate tranformations so that evolution can proceed on the entire space of reals but have the output limited and squished in convenient (and safe) ways.
Nested Class Summary | |
---|---|
static class |
Mapping.Exponential
|
static class |
Mapping.Identity
|
static class |
Mapping.LogLimit
|
static class |
Mapping.SoftLimit
|
Method Summary | |
---|---|
static Mapping |
exponential()
Maps results to positive values. |
static Mapping |
exponential(double scale)
Maps results to positive values. |
static Mapping |
identity()
Maps results to themselves. |
static Mapping |
logLimit(double low,
double high)
Maps input to positive values in the open interval (min, max) with 0 going to the geometric mean. |
static Mapping |
softLimit(double min,
double max)
Maps input to the open interval (min, max) with 0 going to the mean of min and max. |
static Mapping |
softLimit(double min,
double max,
double scale)
Maps input to the open interval (min, max) with 0 going to the mean of min and max. |
Methods inherited from class org.apache.mahout.math.function.DoubleFunction |
---|
apply, isDensifying |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.io.Writable |
---|
readFields, write |
Method Detail |
---|
public static Mapping softLimit(double min, double max, double scale)
min
- The largest lower bound on values to be returned.max
- The least upper bound on values to be returned.scale
- Defines how sharp the boundaries are.
public static Mapping softLimit(double min, double max)
min
- The largest lower bound on values to be returned.max
- The least upper bound on values to be returned.
softLimit(double, double, double)
public static Mapping logLimit(double low, double high)
low
- The largest lower bound for output results. Must be >0.high
- The least upper bound for output results. Must be >0.
public static Mapping exponential()
public static Mapping exponential(double scale)
scale
- If large, then large values are more likely.
public static Mapping identity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |