invenia / AxisSets.jl

Consistent operations over a collection of KeyedArrays
MIT License
5 stars 0 forks source link

Fuzzy constraints #67

Open rofinn opened 3 years ago

rofinn commented 3 years ago

In some datasets, we may want to define a custom alignment function other than simply ==. One use case, is when we have both hourly and daily data which aren't the same size (obviously), but we want to perform the same operations over both (i.e. filtering out a day should also remove the corresponding hours). If we restrict ourselves to Interval queries, then we should be able to define a looser alignment function which simply checks that the days in the hours axis corresponds to the other daily data.

NOTE: I'm not sure how much of a priority this is, as in most cases we could probably just convert the daily data to hourly... either through interpolation or a sparse matrix.