Skip to main content
Rust4PM

oc_performance

process_mining::analysis::object_centric::oc_performance

Functions in this Module(2)

oc_perf_sojourn_per_event

analysis::object_centric::oc_performanceSource

Per-event sojourn time.

For each event with at least one directly-follows predecessor, the sojourn time is event_time - latest_predecessor_time in integer microseconds. Returns one row (event_id, sojourn_us) per qualifying event.

top_k: if Some(k), return only the k rows with the largest sojourn_us, ties broken by ascending event id, sorted descending. None returns every qualifying event.

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.oc_perf_sojourn_per_event(ocel)

oc_perf_sync_per_event

analysis::object_centric::oc_performanceSource

Per-event synchronization time and the delaying object.

For each event with at least one directly-follows predecessor, the synchronization time is max_predecessor_time - min_predecessor_time in integer microseconds (the span between its earliest and latest directly-preceding event). The delaying object is the object linking the latest predecessor (ties broken by ascending object id).

Returns one row (event_id, sync_us, delaying_object_id) per qualifying event. top_k: if Some(k), return only the k rows with the largest sync_us, ties broken by ascending event id, sorted descending. None returns every qualifying event.

Arguments
Import from .json, .json.gz, .xml, .xml.gz, .ocel.csv, .ocel.csv.gz, .ocel.zip, .ocel-parquet.zip, .sqlite, .duckdb, .xes, .xes.gz, or pass OCEL or IndexLinkedOCEL (converted automatically)
import r4pm

# Also: .json, .json.gz, .xml.gz, .ocel.csv, .ocel.csv.gz, ...
ocel = r4pm.import_item('SlimLinkedOCEL', 'ocel.xml')
res = r4pm.bindings.oc_perf_sync_per_event(ocel)