org.apache.ignite.ml.tree.impurity.util

## Class StepFunction<T extends ImpurityMeasure<T>>

- java.lang.Object
- - org.apache.ignite.ml.tree.impurity.util.StepFunction<T>

- Type Parameters:
    `T` - Type of function values.

      public class StepFunction<T extends ImpurityMeasure<T>>
      extends Object

  Step function described by `x` and `y` points.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StepFunction(double[] x, T[] y)` Constructs a new instance of step function.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `StepFunction<T>` | `add(StepFunction<T> b)` Adds the given step function to this.
    `double[]` | `getX()`
    `T[]` | `getY()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StepFunction

          public StepFunction(double[] x,
                              T[] y)

      Constructs a new instance of step function.
      Parameters:
        `x` - Argument of every steps start.
        `y` - Value of every step.

  - ### Method Detail

    - #### add

          public StepFunction<T> add(StepFunction<T> b)

      Adds the given step function to this.
      Parameters:
        `b` - Another step function.
      Returns:
        Sum of this and the given function.

    - #### getX

          public double[] getX()

    - #### getY

          public T[] getY()

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021