Function etterna::find_fastest_note_subset_wife_pts [−][src]
pub fn find_fastest_note_subset_wife_pts(
seconds: &[f32],
min_num_notes: u32,
max_num_notes: u32,
wife_pts: &[f32]
) -> FastestComboInfo
This function finds the “best” note subset (where the number of notes in the subset is in
min_num_notes..=max_num_notes
). The function operates on a single lane only!
How is “best” defined? It’s NPS multiplied by Wife points. For example, a sequence of 50 notes in the timespan of 10 seconds, with a wifescore of 80% yields a value of 4.
The caller still has to scale the returned speed value by the music rate (only applies to
etterna-graph, where the note seconds are always in 1.00x)
seconds
must be sorted, and in the same order as wife_pts
!