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
Transforming data and broadcasting #237
Comments
I'd recommend just doing the following:
or on a HoloMap:
for Curves this is more difficult because of the way the data is stored (we're hoping to improve that in future), I can imagine something like this being supported:
|
Perhaps there is a new way to do it using the Data API? Otherwise, if we feel this is resolved or don't have any new suggestions, we should close this issue. |
Hmm, I've considered whether Columns should support a curve = hv.Curve(np.random.rand(10))
curve['y'] = curve['y'] - curve['y'].mean()
# Or even
curve['y'] -= curve['y'].mean()
curve = hv.Curve(np.random.rand(10))
columns = curve.columns()
columns['y'] = columns['y'] - columns['y'].mean()
curve.clone(columns) |
Dataset.transform was merged in #4080 which allows specifying transforms. In future we may also add |
Quite often, I want to substract a mean background from an Image or a Curve. This mean background is often calculated by reducing an image twice. Is it possible to substract a single number from an Image?
In numpy this would work like:
image = img_raw - bg.mean()
Or more complicated:
I tried to accomplish this first in 1D (a Curve minus a number), but this is also not very easy.
Is this covered in the upcomming first part of the transformation tutorial?
The text was updated successfully, but these errors were encountered: