@SigismondKmiecik Hi, sorry to miss you. I'm rather under time-pressure at work to finish a project. I've been working all weekend, aside from checking in to procrastinate. :) I was thinking it might be appropriate to ask your Q about fline on the main site, where you could post the code, too. Someone might be able to help. I guess you're making some sort of mistake and there are many people who can help.
@Murta I'm relieved to read your comment on the Debugger as I never had success with it myself.As I'm a rather modest MMA user I thought that my inexperience was at the core of it and never did I suspect that this facility is not reliable. It also explains why I never dared to ask a question on SE about it for fear of being downvoted.
If you read [here](mathematica.stackexchange.com/questions/47221/… ) I have a problem with a module that does not work when called from a dynamic context (otherwise perfectly OK, I had used used it quite often).
I'm pretting sure that it is something obvious ,nevetheless I spent hours in vain and the Debugger is hopeless to me. Asking then again a question on SE following an already nicely answered question by @Michael E2 I'm reluctant to do. Can anyone on the chat pinpoint to me where the error is?
I have a distribution represented through it's CDF in the form cdf = {{x1, c1}, {x2, c2}, ..., {xn,cn}}. c_i gives the value of the CDF at point x_i, and c_1 = 0, c_n = 1. What is the best way to reprsent this in Mathematica as a distribution object so I can easily obtain various properties such as the mean, median, variance, etc.?
Currently I am doing if = Interpolation[cdf, InterpolationOrder -> 1]; pd = ProbabilityDistribution[{"CDF", if[x]}, {x, 0, 3}]. Then I can use N[Variance[pd]] or N[Mean[pd]], but not N[Median[pd]].
@Rojo Yes, you're right. So it looks like DataDsitribution["type", data, something, dataLength]. I'm not sure what the something parameter does. The data part looks clear for a HistogramDistribution.
Now, where would the last parameter be used for a HistogramDistribution? It is the number of original data points. It is not present in the histogram data embedded in the DataDistribution.
I mean, what I want to do is create a HistogramDistribution from actual histogram data, not data points. Can I just make up the number of data points?
@OleksandrR. About a month ago I went to a WRI demonstration at our university. To me, it wasn't very convincing because it showed very little of the real power of Mathematica that I actually make use of. They showed a lot more of the showy/pretty stuff (such as presentation functionality, predictive interface, natural language queries, interactive graphics editor, built-in units, 2D math notation) that I never use in practice, and I don't find very functional.
However, looking at the people who attended, most of them were quite old, and they didn't look like people who would use Mathematica. They looked like people who would make decisions about buying it ... that explains a lot of the stupid and aggressive marketing (which only has a repulsive effect on people like us who actually use the system)
@Rojo Yes, something like that. I want to post this as a question. Do you want to post an answer yourself or should I post it (if you don't want to take the time)?
@SigismondKmiecik I agree, a lot of people think that the problem is that they don't know how to use the tool, and not the tool itself. I believe that the problem is that the tool do not work.
@Rojo I have to jump to Murta's help here. I don't use the debugger but I have tried it and setting break-points which work and debugging code is a pain in the ass. I really want to see someone using it with 1k lines of code.
@Rojo Btw, completely unrelated: When AbsoluteTime gives the number of seconds since 1900, why is it a Real?
@halirutan I don't say it works nicely, or that it is bugless. Just that I heard lots of complaints and few concrete examples, so it's hard to try and jump in
@Rojo Yes, this is right. I think a lot of people just gave up on it. Maybe one should really try to use it and work out some specific problem examples.