I got tired of him cherry-picking phrases from what I said without reading the whole. So, I called him on it. We'll see if it helps.
@ChrisJJ no, you're deliberately cherry-picking specific phrases and avoiding others, and I can't tell if it is deliberate, or something in your make-up. But, it is a form of dishonesty, and I have been nothing but honest with you. Please re-read what I wrote in its entirety. — rcollyer18 mins ago
@halirutan Is there any chance the highlighter could be made to recognize greek letters as letter? I know I asked this before but I can't recall the reason why it wasn't possible ... Now we have a tool to easily fix up greek, and many more posts with greek in them than before.
@Szabolcs Yes, I hope that should be easily possible. For the IDEA plugin, I only had to change the pattern for identifiers from something like [$0-1A-z] to using a standard :letter: class that contained all possible utf8 letters.
@Szabolcs I guess we need something like the \w class as described here.
Currently, we are simply using
// Literals like variables, non-keyword functions
[PR.PR_PLAIN, /^[a-zA-Z\$][a-zA-Z0-9\$`]*/, null],
Recently I discovered, to my surprise, that JavaScript has no built-in support for Unicode regular expressions.
So how can I test a string for characters only, Unicode or ASCII?
Does anyone know of any JavaScript libraries that support Unicode-aware regular expressions? For example, there should be something akin to \w that can match any code-point in Letters or Marks category (not just the ASCII ones), and hopefully have filters like [[P*]] for punctuation etc.
@Szabolcs One good thing is that google code prettify moved to GitHub. I can easily ask there as an issue. I have no idea whether he uses a specific library. Looking through the code currently..
@Kuba Not sure whether there is a tutorial about it. I mostly use it the way it is used by e.g. InterpolatingFunction where function["scope"] is only some data-structure holding values (and not a function). And then you can write easy access functions using subvalues.
@Kuba Yeah, and it's hard to guess whether there will be problems in your case.
I can send you a file where I had implemented properties that kind of work like associations and dataset (did this before ass and datasets where included). But I'm not sure whether it is easier to read through my code than just start coding your stuff and see what happens
@halirutan I had to start anyway so it's not necessary atm. But thanks. I won't have time to read it now so next time I face this question I will ask you for this file, ok? :)
@halirutan or you can send it anyway if you don't mind :)
@Kuba I wouldn't do it without a better reason, because you will lose attributes, usage messages and options. Well, you can use options, but not directly with Options. It might get annoying. In a project I used some "objects" that held some internal state and you could call methods on them, like obj@"method"[params]. The lack of usage messages and the ease of setting/retrieving options with Options got quite annoying in the long term.
That's because I forgot how my package worked and I had to keep referring to some sort of usage message, Options, etc. to remind myself
There are better reasons in many cases though, e.g. think how InterpolatingFunction works, it also requires using SubValues.
There are also cases when I use the fun[params][data] form instead of fun[params, data]. This way it's easy to "make" and store a function with parameters embedded, and use it to transform several data sets.
To high-rep users: It seems the best answer, mathematica.stackexchange.com/questions/67108/…, to the question was deleted by the owner, perhaps due to a misunderstanding. I've edited it and nominated it for undeletion. See what you think, if you're interested.
I just spend quite a bit of time to carefully write up a question, but then I started to have a strange feeling of deja vu ... so I searched more and finally found the same question asked by someone else ... with an answer written by myself.
@Sosi, linear or nonlinear fitting? They proceed differently, IIRC.
@Szabolcs, that's why I like this site a lot and do my best to write good answers; I can easily imagine my future forgetful self having to search for a particular method only to find my younger self having written a usable solution. ;)
@Guesswhoitis. In a linear model. But the issue is the same (I'm guessing), despite different methods being used: I can't find information on how those p-values are computed. I am guessing a specific distribution is found based on some sampling around the final fitted parameter, and then that distribution is compared to another distribution. But how? What is specifically done?
It's using Student-t if memory serves, from my reading of the old Statistics`LinearRegression` package. Does your version still have a "Legacy Packages" folder in its installation?
If memory serves, Mathematica still keeps some of its old packages around under a "Legacy Packages" folder. In this case, "LinearRegression.m" was the package that did the work of the current LinearModelFit[].
@Guesswhoitis. or any moderator. Apparently I goofed, and I included stuff in my original answer here that shouldn't have been there. Can it be expunged?
and for the sake of my sanity, the original version of the new answer, too. there are copyright issues, I was not aware of, and the newly removed ones may get pesky, too.