/** * Maps input to the open interval (min, max) with 0 going to the mean of min and * max. When scale is large, a larger proportion of values are mapped to points * near the boundaries. When scale is small, a larger proportion of values are mapped to * points well within the boundaries. * @param min The largest lower bound on values to be returned. * @param max The least upper bound on values to be returned. * @param scale Defines how sharp the boundaries are. * @return A mapping that satisfies the desired constraint. */ public static Mapping softLimit(double min, double max, double scale) { return new SoftLimit(min, max, scale); }
/** * Maps input to the open interval (min, max) with 0 going to the mean of min and * max. When scale is large, a larger proportion of values are mapped to points * near the boundaries. When scale is small, a larger proportion of values are mapped to * points well within the boundaries. * @param min The largest lower bound on values to be returned. * @param max The least upper bound on values to be returned. * @param scale Defines how sharp the boundaries are. * @return A mapping that satisfies the desired constraint. */ public static Mapping softLimit(double min, double max, double scale) { return new SoftLimit(min, max, scale); }
/** * Maps input to the open interval (min, max) with 0 going to the mean of min and * max. When scale is large, a larger proportion of values are mapped to points * near the boundaries. When scale is small, a larger proportion of values are mapped to * points well within the boundaries. * @param min The largest lower bound on values to be returned. * @param max The least upper bound on values to be returned. * @param scale Defines how sharp the boundaries are. * @return A mapping that satisfies the desired constraint. */ public static Mapping softLimit(double min, double max, double scale) { return new SoftLimit(min, max, scale); }