Home | History | Annotate | Download | only in moment

Lines Matching defs:direction

37  * and the "variance direction" (upside or downside) defaults to downside.  The variance direction
39 * parameters to {@link #evaluate(double[], double, Direction, boolean, int, int)}.</p>
57 * The UPSIDE Direction is used to specify that the observations above the
60 public static final Direction UPSIDE_VARIANCE = Direction.UPSIDE;
63 * The DOWNSIDE Direction is used to specify that the observations below
66 public static final Direction DOWNSIDE_VARIANCE = Direction.DOWNSIDE;
80 private Direction varianceDirection = Direction.DOWNSIDE;
103 * Constructs a SemiVariance with the specified <code>Direction</code> property
106 * @param direction setting for the direction of the SemiVariance
109 public SemiVariance(final Direction direction) {
110 this.varianceDirection = direction;
116 * property and the specified <code>Direction</code> property.
122 * @param direction setting for the direction of the SemiVariance
125 public SemiVariance(final boolean corrected, final Direction direction) {
127 this.varianceDirection = direction;
212 * @param direction the {@link Direction} of the semivariance
217 public double evaluate(final double[] values, Direction direction) {
219 return evaluate (values, m, direction, biasCorrected, 0, values.length);
240 * given direction, using the current value of the biasCorrection instance property.</p>
247 * @param direction the {@link Direction} of the semivariance
251 public double evaluate(final double[] values, final double cutoff, final Direction direction) {
252 return evaluate(values, cutoff, direction, biasCorrected, 0, values.length);
258 * in the given direction with the provided bias correction.</p>
265 * @param direction the {@link Direction} of the semivariance
273 public double evaluate (final double[] values, final double cutoff, final Direction direction,
283 final boolean booleanDirection = direction.getDirection();
326 public Direction getVarianceDirection () {
331 * Sets the variance direction
333 * @param varianceDirection the direction of the semivariance
335 public void setVarianceDirection(Direction varianceDirection) {
340 * The direction of the semivariance - either upside or downside. The direction
343 public enum Direction {
345 * The UPSIDE Direction is used to specify that the observations above the
351 * The DOWNSIDE Direction is used to specify that the observations below
359 private boolean direction;
362 * Create a Direction with the given value.
364 * @param b boolean value representing the Direction. True corresponds to UPSIDE.
366 Direction (boolean b) {
367 direction = b;
371 * Returns the value of this Direction. True corresponds to UPSIDE.
373 * @return true if direction is UPSIDE; false otherwise
376 return direction;