Skip to main content

oc_statistics

process_mining::analysis::object_centric::oc_statistics

Functions in this Module(2)

locel_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.
SlimLinkedOCELrequired
Stringrequired
Stringrequired
Stringrequired
import r4pm

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

process_mining/src/analysis/object_centric/oc_statistics.rs:45

locel_event_object_type_counts

analysis::object_centric::oc_statisticsSource
Count E2O relationships per (event_type, object_type) pair.
Each entry is (event_type, object_type, count). A single (event, object) pair connected
by multiple qualifiers contributes once per qualifier. Pairs with zero relations are omitted.
Result row order is unspecified.
SlimLinkedOCELrequired
import r4pm

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

process_mining/src/analysis/object_centric/oc_statistics.rs:18