Returns a function that multiplies each value in a single time series by the specified factor.
For a source time series with points (timestamp, value), upon scaling by factor,
the resulting scaled time series will have points (timestamp, value * factor).
Parameters:factor (float) – The scaling factor that is multiplied with the value of each point.
Returns:
A function that accepts a single time series as input and returns the scaled time series.