The easiest way is to find a person who understands both the source and target language, and pay them for the translation. Another option, cheaper but potentially slower, is to learn the languages yourself. Without having seen the source, it's hard to tell how complex the translation would be.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord
}map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
| [reply] [d/l] |
The Kolmogorov–Smirnov test seems pretty straightforward, but the devil is in the details, as they say. If you have the cumulative distribution function (CDF) available (you didn't say which distribution you're dealing with), you just sort your data values and compare them with the CDF. | [reply] |
I don't know anything about Kolmogorov-Smirnov p-values, but I tend to believe that R is usually fairly efficient. So I would tend to think that if this is "extraordinarily slow," then it is probably not used correctly. Just my 2 cents. | [reply] |
Perhaps therefore you should challenge the original requirement: if these values are prohibitively slow to calculate "one at a time," as you seem to have just determined, then you should look for an alternate approach, perhaps with the assistance of your friendly neighborhood statistician boss. Maybe the calculation of p-values demands re-processing of the entire dataset ... once for each and every member of that dataset ... thus becoming a prohibitively-expensive O(x^y) computational approach for the number of observations that must be considered. | [reply] |