public abstract class Mapping extends DoubleFunction implements org.apache.hadoop.io.Writable
Modifier and Type | Class and Description |
---|---|
static class |
Mapping.Exponential |
static class |
Mapping.Identity |
static class |
Mapping.LogLimit |
static class |
Mapping.SoftLimit |
Modifier and Type | Method and Description |
---|---|
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.
|
apply, isDensifying
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()
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.