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

Method median

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

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

(
        &self,
    )

Source from the content-addressed store, hash-verified

71 /// Returns:
72 /// IntervalsIntegerView: A lazy view over the median interval between consecutive timestamps for each node. The median is None if there is fewer than 1 interval.
73 pub fn median(
74 &self,
75 ) -> LazyNodeState<
76 'static,
77 ArrowMap<Map<HistoryIntervals<DynamicGraph>, Option<i64>>, IntervalStruct>,
78 DynamicGraph,
79 DynamicGraph,
80 DynNodeFilter,
81 > {
82 let op = self.inner.op.clone().map(|v| v.median());
83 LazyNodeState::new(op.into_arrow_node_op(), self.inner.nodes())
84 }
85
86 /// Calculate the maximum interval in milliseconds for each node.
87 ///

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