Complete refactor of histograms API #476

Merged
altavir merged 15 commits from refactor/histogram into dev 2022-04-10 20:59:05 +03:00
Showing only changes of commit 40b088149b - Show all commits

View File

@ -75,7 +75,7 @@ public interface IndexedHistogramGroup<T : Comparable<T>, V : Any> : Group<Index
}
override fun scale(a: IndexedHistogram<T, V>, value: Double): IndexedHistogram<T, V> {
require(a.histogramSpace == this) { "Can't operate on a histogram produced by external space" }
require(a.histogramSpace == this) { "A histogram belonging to a different group cannot be operated." }
return IndexedHistogram(this, histogramValueAlgebra { a.values * value })
}