Function calculate

Source
pub fn calculate(
    tp: &TrafficPattern,
    strategy: &DefaultDifficultyStrategy,
) -> Result<Vec<Level>, ServiceError>