Commit 71aa8f36 authored by Thomas Friedrichsmeier's avatar Thomas Friedrichsmeier
Browse files

Add i18n to CLT-plugins (rather easy, as these do not come with a header, thus far).

parent 9f440e0a
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Beta&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Beta"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Beta to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Binomial&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Binomial"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Binomial to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Chi-Squared&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Chi-Squared"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Chi squared to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -21,11 +21,11 @@ function doPrintout (full) {
var drawnorm = getValue ("drawnorm");
echo ('# parameters:\n');
comment ('parameters:');
doParameters (); // get the parameters from xml file and store them R varaibles
if (scalenorm || drawnorm) {
echo ('# mean and variances of the distribution of sample averages:\n');
comment ('mean and variances of the distribution of sample averages:');
doExpVar (); // calculate the expectation and varaince of the distribution of smaple averages
}
......@@ -52,26 +52,26 @@ function doPrintout (full) {
var yLim = ""; // initialise the ylim option
echo ('# generate the entire data:\n');
comment ('generate the entire data:');
doGenerateData (); // generate the random samples
echo ('# get the sample averages:\n');
comment ('get the sample averages:');
echo ('avg <- colMeans(data);\n');
if (scalenorm) {
echo ('# normalise the variables:\n');
comment ('normalise the variables:');
echo ('avg <- (avg - avg.exp)/sqrt(avg.var);\n');
}
if (drawnorm) {
echo ('# generate random normal samples:\n');
comment ('generate random normal samples:');
echo ('normX <- seq(from=min(avg), to=max(avg), length=' + nDist + ');\n');
echo ('normY <- ' + normFun + ' (normX' + normMuSigma_tag + ');\n');
}
if (fun == "hist") {
echo ('dist.hist <- hist(avg, plot=FALSE' + histcalcoptions + ');\n');
if (drawnorm) {
echo ('# calculate the ylims appropriately:\n');
comment ('calculate the ylims appropriately:');
echo ('ylim <- c(0,max(c(dist.hist$density, normY)));\n');
yLim = ', ylim=ylim';
}
......
......@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Exponential&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Exponential"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Exponential to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -15,7 +15,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;F&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("F"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: F to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Gamma&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Gamma"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Gamma to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Geometric&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Geometric"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Geometric to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -15,7 +15,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Hypergeometric&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Hypergeometric"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Hypergeometric to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Logistic&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Logistic"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Logistic to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Lognormal&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Lognormal"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Lognormal to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -26,7 +26,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Negative Binomial&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Negative Binomial"));
]]></script>
<convert id="useprob" mode="equals" sources="param.string" standard="pprob" />
<connect client="prob.enabled" governor="useprob" />
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Normal&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Normal"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Normal to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -13,7 +13,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Poisson&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Poisson"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Poisson to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;t&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("t"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: t to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Uniform&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Uniform"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Uniform to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_dopoints" to="false" />
<set id="plotoptions.default_main" to="&quot;Weibull&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Weibull"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Weibull to Normal" >
<insert snippet="clt_layout"/>
......
......@@ -14,7 +14,9 @@
<logic>
<insert snippet="clt_logic"/>
<set id="dist_stepfun.default_verticals" to="false" />
<set id="plotoptions.default_main" to="&quot;Wilcoxon&quot;"/>
<script><![CDATA[
gui.setValue ("plotoptions.default_main", i18n ("Wilcoxon"));
]]></script>
</logic>
<dialog label="Central Limit Theorem: Wilcoxon to Normal" >
<insert snippet="clt_layout"/>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment