code: func (w *Waveform) SetSampleFunction(function SampleReduceFunc) error {
  	return w.SetOptions(SampleFunction(function))
  }
docs: // SetSampleFunction applies the input SampleReduceFunc to the receiving Waveform
  // struct.