func NewMHWPredict(rows int, alpha, beta float32, period int, idx int) RRA {
	return newRRA(MultipliedHoltWinterPredict, rows, alpha, beta, period, idx)
}
NewMHWPredict returns a new HWPREDICT RRA.
package rrd
import (
	"fmt"
	"strings"
)
const (
	Average = "AVERAGE"
	Min     = "MIN"
	Max     = "MAX"
	Last    = "LAST"
	HoltWintersPredict          = "HWPREDICT"
	MultipliedHoltWinterPredict = "MHWPREDICT"
	Seasonal                    = "SEASONAL"
	DevSeasonal                 = "DEVSEASONAL"
	DevPredict                  = "DEVPREDICT"
	Failures                    = "FAILURES"
)
type RRA string
func NewRRA(val string) RRA {
	return RRA(val)
}
func newRRA(rra string, vals ...interface{}) RRA {
	parts := make([]string, len(vals)+2)
	parts[0] = "RRA"
	parts[1] = rra
	for i, v := range vals {
		parts[i+2] = fmt.Sprint(v)
	}
	return RRA(strings.Join(parts, ":"))
}
func NewAverage(xff float32, steps, rows int) RRA {
	return newRRA(Average, xff, steps, rows)
}
func NewMin(xff float32, steps, rows int) RRA {
	return newRRA(Min, xff, steps, rows)
}
func NewMax(xff float32, steps, rows int) RRA {
	return newRRA(Max, xff, steps, rows)
}
func NewLast(xff float32, steps, rows int) RRA {
	return newRRA(Last, xff, steps, rows)
}
func NewHWPredict(rows int, alpha, beta float32, period int, idx int) RRA {
	return newRRA(HoltWintersPredict, rows, alpha, beta, period, idx)
}