MCPcopy Create free account
hub / github.com/Pometry/Raphtory / mean

Method mean

raphtory/src/python/graph/node_state/node_state_intervals.rs:56–67  ·  view source on GitHub ↗

Calculate the mean interval in milliseconds for each node. Returns: IntervalsFloatView: A lazy view over the mean interval between consecutive timestamps for each node. The mean is None if there is fewer than 1 interval.

(
        &self,
    )

Source from the content-addressed store, hash-verified

54 /// Returns:
55 /// IntervalsFloatView: A lazy view over the mean interval between consecutive timestamps for each node. The mean is None if there is fewer than 1 interval.
56 pub fn mean(
57 &self,
58 ) -> LazyNodeState<
59 'static,
60 ArrowMap<Map<HistoryIntervals<DynamicGraph>, Option<f64>>, AvgIntervalStruct>,
61 DynamicGraph,
62 DynamicGraph,
63 DynNodeFilter,
64 > {
65 let op = self.inner.op.clone().map(|v| v.mean());
66 LazyNodeState::new(op.into_arrow_node_op(), self.inner.nodes())
67 }
68
69 /// Calculate the median interval in milliseconds for each node.
70 ///

Callers

nothing calls this directly

Calls 8

into_arrow_node_opMethod · 0.80
mapMethod · 0.45
cloneMethod · 0.45
nodesMethod · 0.45
intoMethod · 0.45
iter_valuesMethod · 0.45
graphMethod · 0.45
idsMethod · 0.45

Tested by

no test coverage detected