cumulative_epochs {toporanga}R Documentation

Cumulative epoch generator

Description

Splits the event log into cumulative epochs, i.e., starting from the start up to selected number of final points. Returns an object which has to be fed into epochs argument of toporanga function.

Usage

cumulative_epochs(n, t)

Arguments

n

number of epochs. Silently capped to the number of events, if larger.

t

optional event times, vector of a same length and order as the event log given to toporanga function. When given, epochs will be generated based on equal-time breaks not equal-event-number breaks.

Value

A special function that can be passed to the epochs argument of toporanga function.

Note

If time is not given, event log must be sorted; otherwise, epochs will not make any sense.


[Package toporanga version 1.0.0 Index]