610 reputation
214
bio website bsl-support.de
location Germany
age
visits member for 2 years, 6 months
seen 8 hours ago

May
24
comment Inverting a Spline-Function (Bezier or BSpline)
That is a reasonable suggestion but since I am a bit "clueless" about which functional form to use - and what the implication of it would be - I thought "that is exactly what splines were invented for"?
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
My problem is, that besides the point $(\alpha,\beta)$ where both parameters are to be estimated, and the points $(0,0)$ and $(x_\text{max},y_\text{max})$ I do not know anything else. Interpolation[] will give a function passing through the points. I find it very hard to keep it within plausible ranges?
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
Great, thanks. You said "if you absolutely must use B-splines" -- well I need to 'calibrate' a transformation where I do not know the mapping (function) to use. From some reasonable assumptions (all values within $[0,\infty($, the function probably not beeing s-shaped etc., I found a spline to be the best way to define a smooth function with just two parameters (next to one for scaling the maximum value). What else to use/do?
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
That is interesting and a bit weird at the same time. I had tried defining a pure function (e.g. g = Last[#]&) and then using Composition[g,f][t] in the equation definition but that did not work out. I am not quite getting why the delayed function does help here?
May
24
revised Inverting a Spline-Function (Bezier or BSpline)
I got confused with x and y, so I had to edit the equation for the equation solving.
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
@BoLe Uups, you are right, I should have used Last instead of First in my post here and so you are correct. But that still does not change the principle problem with equation solving. Thanks for pointing out the error, I will edit my question.
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
I tried FindRoot (e.g. FindRoot[First@f[t]==0.6,{t,0.5}]) but I still get the wrong result doing so?
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
Thanks for that answer, but I was aware of this possibility already and have accordingly changed my question. Why does "regular" equation solving with the Spline Function not work?
May
24
revised Inverting a Spline-Function (Bezier or BSpline)
Giving a more precise question since I am aware of using an approximation to the spline which can then be easily inverted. I still cannot see any reason for regular equation solving not working here?
May
24
comment Inverting a Spline-Function (Bezier or BSpline)
Thank you, Sjoerd, I should have mentioned that solution - whiich is what I am doing now: using a grid with Interpolation[] where I have gotten the best results using InterpolationOrder->2. But that still is not perfect and still wonder why equation solving won't work here.
May
24
asked Inverting a Spline-Function (Bezier or BSpline)
May
19
comment Why don't these styling rules work when viewed in TableForm?
As a matter of taste I would rewrite the replacement rule as m /. l_List /; Last[l] > 0 :> ... . This formulation already hints at what is the problem with Style being applied to a list.
Mar
18
awarded  Yearling
Jan
29
awarded  Nice Question
Nov
13
comment BUGS-type calculations in Mathematica
This is a notebook from the 2007 Wolfram Technology Conference demonstrating many Bayesian statistical procedures.
Oct
3
awarded  Nice Question
Jun
22
comment How to Set parts of indexed lists?
+1 Great job, thank you Rojo. I must admit as somewhat 'intermediate' user I certainly will need a bit of time to thoroughly understand the solutions offered by Leonid and you.
Jun
22
comment How to Set parts of indexed lists?
Testing this runs as fast as direct assignment for a non-indexed var. Does this solution have the same memory disadvantages as ReplacePart does? (the indexed-var needs to be copied and reassigned)
Jun
22
revised How to Set parts of indexed lists?
Change the setIndexed functions arguments to be more readable with regard to the OP.
Jun
22
accepted How to Set parts of indexed lists?