func funcResets(vals []Value, args Expressions, enh *EvalNodeHelper) Vector {
	in := vals[0].(Matrix)

	for _, samples := range in {
		resets := 0
		prev := samples.Points[0].V
		for _, sample := range samples.Points[1:] {
			current := sample.V
			if current < prev {
				resets++
			}
			prev = current
		}

		enh.out = append(enh.out, Sample{
			Point: Point{V: float64(resets)},
		})
	}
	return enh.out
}
func funcResets(vals []Value, args Expressions, enh *EvalNodeHelper) Vector {
	in := vals[0].(Matrix)

	for _, samples := range in {
		resets := 0
		prev := samples.Points[0].V
		for _, sample := range samples.Points[1:] {
			current := sample.V
			if current < prev {
				resets++
			}
			prev = current
		}

		enh.out = append(enh.out, Sample{
			Point: Point{V: float64(resets)},
		})
	}
	return enh.out
}
func funcResets ( vals [ ] Value , args Expressions , enh * EvalNodeHelper ) Vector { in := vals [ 0 ] . ( Matrix ) for _ , samples := range in { resets := 0 prev := samples . Points [ 0 ] . V for _ , sample := range samples . Points [ 1 : ] { current := sample . V if current < prev { resets ++ } prev = current } enh . out = append ( enh . out , Sample { Point : Point { V : float64 ( resets ) } , } ) } return enh . out }
// === resets(Matrix ValueTypeMatrix) Vector ===
=== resets ( Matrix ValueTypeMatrix ) Vector ===