Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / average
Go to reference
Go to reference
average
@JvmName("averageOfByte") fun Attribute<Iterable<Byte>>.average(): Attribute<Double>
@JvmName("averageOfDouble") fun Attribute<Iterable<out Double>>.average(): Attribute<Double>
@JvmName("averageOfFloat") fun Attribute<Iterable<Float>>.average(): Attribute<Double>
@JvmName("averageOfInt") fun Attribute<Iterable<Int>>.average(): Attribute<Double>
@JvmName("averageOfLong") fun Attribute<Iterable<Long>>.average(): Attribute<Double>
@JvmName("averageOfShort") fun Attribute<Iterable<Short>>.average(): Attribute<Double>
Same as average, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling average in the transformation function.
This is simply a convenience function.
See Also
@JvmName("averageOfByte") fun Attribute<Sequence<Byte>>.average(): Attribute<Double>
@JvmName("averageOfDouble") fun Attribute<Sequence<out Double>>.average(): Attribute<Double>
@JvmName("averageOfFloat") fun Attribute<Sequence<Float>>.average(): Attribute<Double>
@JvmName("averageOfInt") fun Attribute<Sequence<Int>>.average(): Attribute<Double>
@JvmName("averageOfLong") fun Attribute<Sequence<Long>>.average(): Attribute<Double>
@JvmName("averageOfShort") fun Attribute<Sequence<Short>>.average(): Attribute<Double>
Same as average, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling average in the transformation function.
This is simply a convenience function.
See Also