Documentation / dataflow / com.femastudios.dataflow.extensions / average
Go to reference

average

@JvmName("averageOfByte") fun Field<Iterable<Byte>>.average(): Field<Double>
@JvmName("averageOfDouble") fun Field<Iterable<out Double>>.average(): Field<Double>
@JvmName("averageOfFloat") fun Field<Iterable<Float>>.average(): Field<Double>
@JvmName("averageOfInt") fun Field<Iterable<Int>>.average(): Field<Double>
@JvmName("averageOfLong") fun Field<Iterable<Long>>.average(): Field<Double>
@JvmName("averageOfShort") fun Field<Iterable<Short>>.average(): Field<Double>

Same as average, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling average in the transformation function.

This is simply a convenience function.

See Also

kotlin.collections.average


@JvmName("averageOfByte") fun Field<Sequence<Byte>>.average(): Field<Double>
@JvmName("averageOfDouble") fun Field<Sequence<out Double>>.average(): Field<Double>
@JvmName("averageOfFloat") fun Field<Sequence<Float>>.average(): Field<Double>
@JvmName("averageOfInt") fun Field<Sequence<Int>>.average(): Field<Double>
@JvmName("averageOfLong") fun Field<Sequence<Long>>.average(): Field<Double>
@JvmName("averageOfShort") fun Field<Sequence<Short>>.average(): Field<Double>

Same as average, but accepts Field and returns a new Field.

Calling this function is equivalent to use transform and calling average in the transformation function.

This is simply a convenience function.

See Also

kotlin.sequences.average