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
To control the amplitude, the best method is using scalar multiplication or division. These operations create another lazy object that scales the original model without having to broadcast and potentially allocate.
28
+
To control the amplitude, the best method is using scalar multiplication or division. These operations create another lazy object ([`ScaledPSFModel`](@ref)) that scales the original model without having to broadcast and potentially allocate.
29
29
30
30
```jldoctest model
31
31
julia> m_scaled = 20 * m;
@@ -75,7 +75,7 @@ julia> model = PSFModels.Gaussian(51, 51, 2); # center of big_mat, fwhm=2
Nice- we only had to reduce ~50 pixels instead of ~10,000 to calculate the aperture sum, and with some care we could make it allocation-free.
93
+
Nice- we only had to reduce ~50 pixels instead of ~10,000 to calculate the aperture sum, all in under a microsecond (on my machine).
92
94
93
95
Since the models are lazy, that means the type of the output can be specified, as long as it can be converted to from a real number (so no integer types).
0 commit comments