Ensure Real Results?
- January 5, 2012
- 1 reply
- 2498 views
Collab --
In the attached worksheet, I am attempting to map uniform distribution onto a logistic function. While the logistic function appears smooth when plotted, it is imaginary for certain input values when inverted. In Mathcad, I can get around this by splining. However, this is not possible in my final application (I am using Mathcad for testing and debugging). My final application has no ability to handle imaginary numbers and simply throws an error when it encounters one. Furthermore, the only random numbers it generates are from a uniform distribution. Thus, the problem may be summarized as follows:
1. Fit function to measured data
2. Invert fitting function
3. Require real output from #2 for all inputs [0,1]
4. Map uniform distribution to #2 in target application
The problem here is step 3. So can anyone either: (a) tell me how to enforce #3 for the function given; or (b) suggest another function that obeys #3?
A final note -- this exercise is a pretty rough approximation. Thus, if the optimal solution involves discarding some results to enforce #3, I can live with that -- I just can't live with a solution that introduces a gross systematic bias in the numbers (i.e., eliminating all numbers between 0.5 and 1).
Thanks in advance.
Matt

