dgryski/go-lttb

How could this library be applied to a general set of data?

chmorgan opened this issue · 0 comments

Hello. Love the algorithm and the concept reducing data points.

I'm trying to figure out how to apply this when I have a set of data that contains a number of other fields, something like:

type TemperatureSeriesEntry struct {
// External temperature in celsius
Celsius float64 json:"celsius,omitempty"

// Time in ISO 8601 format
// Format: date-time
Start strfmt.DateTime `json:"start,omitempty"`

}

It looks like there are two issues with the mapping, one is mapping the DateTime to an X value, the other is that in some other use cases there could be a number of other variables in the struct.

Any thoughts on how to apply lttb to a more general dataset?