You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In place of the while loop in the "Increase step size if too many bins" section of the algorithm, I added a fixed number of iterations and selected the first one that satisfies the criteria. I'm not sure how best to select this threshold, but I don't think in needs to be very high (and it shouldn't be very expensive).
In the case where the bin transform is required to output a signal, we would need to perform this calculation in Rust anyway, but for the case where it doesn't need to output a signal, it might be benefitial to avoid performing a separate query to compute the bin edges.
The text was updated successfully, but these errors were encountered:
I started playing with implementing the Vega/D3 automatic bin selection algorithm in SQL. I got pretty close with this (in duckdb)
In place of the while loop in the "Increase step size if too many bins" section of the algorithm, I added a fixed number of iterations and selected the first one that satisfies the criteria. I'm not sure how best to select this threshold, but I don't think in needs to be very high (and it shouldn't be very expensive).
In the case where the
bin
transform is required to output a signal, we would need to perform this calculation in Rust anyway, but for the case where it doesn't need to output a signal, it might be benefitial to avoid performing a separate query to compute the bin edges.The text was updated successfully, but these errors were encountered: