org.apache.ignite.ml.tree.randomforest.data.statistics

## Class MeanValueStatistic

- java.lang.Object
- - org.apache.ignite.ml.tree.randomforest.data.statistics.MeanValueStatistic

- All Implemented Interfaces:
    Serializable

      public class MeanValueStatistic
      extends Object
      implements Serializable

  Statistics for mean value computing container.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MeanValueStatistic(double sumOfValues, long cntOfValues)` Creates an instance of MeanValueStatistic.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `long` | `getCntOfValues()`
    `double` | `getSumOfValues()`
    `double` | `mean()`
    `void` | `setCntOfValues(long cntOfValues)`
    `void` | `setSumOfValues(double sumOfValues)`

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

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

- - ### Constructor Detail

    - #### MeanValueStatistic

          public MeanValueStatistic(double sumOfValues,
                                    long cntOfValues)

      Creates an instance of MeanValueStatistic.
      Parameters:
        `sumOfValues` - Sum of values.
        `cntOfValues` - Count of values.

  - ### Method Detail

    - #### mean

          public double mean()

      Returns:
        Mean value.

    - #### getSumOfValues

          public double getSumOfValues()

    - #### setSumOfValues

          public void setSumOfValues(double sumOfValues)

    - #### getCntOfValues

          public long getCntOfValues()

    - #### setCntOfValues

          public void setCntOfValues(long cntOfValues)

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.1
Release Date | : December 9 2020