Interface Mean<T>

All Known Implementing Classes:
DoubleGene, IntegerGene, LongGene

public interface Mean<T>
A mixin interface for genes which can have a mean value. This mixin is required for the MeanAlterer.
Since:
1.0
Version:
1.6
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    mean(T that)
    Return the (usually arithmetic) mean value of this and that.
  • Method Details

    • mean

      T mean(T that)
      Return the (usually arithmetic) mean value of this and that. For NumericGenes the mean is the arithmetic mean.
      Parameters:
      that - the second value for calculating the mean.
      Returns:
      the mean value of this and that.
      Throws:
      NullPointerException - if the argument is null.