Map

All functions · nseries package

Map

func (s Series) Map(f func(x float64) float64) Series

Map applies an arbitrary func to each element of the series s and returns a series with the resulting computed values. A nil func returns a zero-filled series of the same length.