vecxtensions
package vecxtensions
Members list
Value members
Concrete methods
- You have a sorted groups array.
- Each group has a small number of values.
- You're doing per-group cumulative sums.
- Returns cumulative sums for each element within its group
Attributes
- You have a sorted groups array.
- Each group has a small number of values.
- You're doing per-group differences.
- Returns differences between consecutive elements within each group
- Each group starts with its first value
Attributes
def groupSum(groups: Array[Int], values: Array[Double]): (uniqueGroups: Array[Int], groupSums: Array[Double])
- You have a sorted groups array.
- Each group has a small number of values.
- You’re doing per-group reductions.
- Does not fill in any "gaps" in the groups array
Attributes
In this article