mirror of https://bitbucket.org/ausocean/av.git
19 lines
401 B
Go
19 lines
401 B
Go
|
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)
|
||
|
}
|
||
|
|
||
|
func (r *Results) Append(saturation, contrast, turbidity float64, i int) {
|
||
|
r.saturation[i] = saturation
|
||
|
r.contrast[i] = contrast
|
||
|
r.turbidity[i] = turbidity
|
||
|
}
|