pm4py.statistics.traces.generic.common.case_duration module#

class pm4py.statistics.traces.generic.common.case_duration.Parameters(*values)[source]#

Bases: Enum

GRAPH_POINTS = 'graph_points'#
POINT_TO_SAMPLE = 'points_to_sample'#
pm4py.statistics.traces.generic.common.case_duration.get_kde_caseduration(duration_values, parameters=None)[source]#

Gets the estimation of KDE density for the case durations calculated on the log/dataframe

Parameters:
  • duration_values – Values of duration

  • parameters

    Possible parameters of the algorithm, including:

    graph_points -> number of points to include in the graph

Returns:

  • x – X-axis values to represent

  • y – Y-axis values to represent

pm4py.statistics.traces.generic.common.case_duration.get_kde_caseduration_json(duration_values, parameters=None)[source]#

Gets the estimation of KDE density for the case durations calculated on the log/dataframe (expressed as JSON)

Parameters:
  • duration_values – Values of duration

  • parameters

    Possible parameters of the algorithm, including:

    graph_points: number of points to include in the graph

Returns:

JSON representing the graph points

Return type:

json