Skip to main content
Rust4PM

oc_statistics

process_mining::analysis::object_centric::oc_statistics

Functions in this Module(2)

conversion_rate

analysis::object_centric::oc_statisticsSource

Conversion rate from source_type to target_type via O2O, restricted to targets touched by activity.

Returns the fraction of source_type objects that have at least one outgoing O2O edge to a target_type object related (via E2O) to some event of the given event type. Returns 0.0 if no source_type objects exist.

Errors. Returns an error if activity names no declared event type, or if either object type is not declared, so a rate of 0.0 cannot mean a misspelled name.

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)
String
String
String
import r4pm

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

event_object_type_counts

analysis::object_centric::oc_statisticsSource

Count related (event, object) pairs per (event_type, object_type) pair.

Each entry is (event_type, object_type, count). An object related to an event under several qualifiers counts once for that event. Pairs with zero relations are omitted. Sorted by (event_type, object_type).

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.event_object_type_counts(ocel)