forked from kscience/kmath
Update kmath-histograms/src/commonMain/kotlin/space/kscience/kmath/histogram/IndexedHistogramGroup.kt
Co-authored-by: Iaroslav Postovalov <38042667+CommanderTvis@users.noreply.github.com>
This commit is contained in:
parent
86d89f89f9
commit
40b088149b
@ -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> {
|
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 })
|
return IndexedHistogram(this, histogramValueAlgebra { a.values * value })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user