av/turbidity/results.go

20 lines
418 B
Go
Raw Normal View History

package main
type Results struct {
turbidity []float64
saturation []float64
contrast []float64
}
func (r *Results) New(n int) {
r.turbidity = make([]float64, n)
r.saturation = make([]float64, n)
r.contrast = make([]float64, n)
}
2021-12-21 04:43:05 +03:00
func (r *Results) Append(saturation, contrast, turbidity float64, index int) {
r.saturation[index] = saturation
r.contrast[index] = contrast
r.turbidity[index] = turbidity
}