convergeMean

inline fun <ID : Any, Potential : Comparable<Potential>> Aggregate<ID>.convergeMean(local: Double, potential: Field<ID, Potential>, selectParent: Comparator<FieldEntry<ID, Potential>> = defaultComparator()): Double
inline fun <ID : Any, Potential : Comparable<Potential>> Aggregate<ID>.convergeMean(local: Double, potential: Potential, selectParent: Comparator<FieldEntry<ID, Potential>> = defaultComparator()): Double

Computes the mean of all local values along a spanning tree built descending the provided potential field using selectParent.


inline fun <ID : Any> Aggregate<ID>.convergeMean(local: Double, sink: Boolean): Double

Computes the mean of all local values into the selected sink along a spanning tree built by descending the potential built using hopDistanceTo.