-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
De-duplicate code associated to time-series & time-series numbers #1669
Comments
Remove |
scratchpad.ts
The previous code excerpt shows a way to remove code duplication. |
I suggest that:
class Timeseries
{
public:
// either a getter or the operator as today
double operator[](int hour) const { return values[hour]; }
private:
int size;
double* values;
}; |
Why not We could also use Eigen's Matrix, which supports extracting a single column through |
scratchpad.ts
Well it's of course a valid choice too:
|
Main PR: #1677
Idea
One shared
TimeSeriesNumbers
object, used by one or manyTimeSeries
objects.TimeSeries
can only be constructed from an existingTimeSeriesNumbers
.The text was updated successfully, but these errors were encountered: