Recent posts by Alexander Täschnerhttp://sourceforge.net/u/taschna/2014-06-20T10:57:29ZAdd smooth histogram option to plot command2014-06-20T10:57:29Z2014-06-20T10:57:29ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.netc73d8b4583b8667cf2bdf440ce351b3d08645ef5<div class="markdown_content"><p>The smooth frequency option can be used to generate histograms from data, but the<br />
binning function, the user has to provide, is rather complex. The attached patch introduces a smooth histogram function, which is much easier to use. The user can provide the desired binning via the "set xrange <span>[xmin:max]</span>" and the "set boxwidth xb" command. This then generates bins of width xb from the interval <span>[xmin:xmin+xb]</span> to <span>[xmax-xb:xb]</span> and sums the y-values of the data into these intervals (x-value is set to bin center). This approach also has the advantage that bins with no entries are plotted with y=0.</p></div>Add options to set table command2014-06-20T09:02:39Z2014-06-20T09:02:39ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net51e35aa2fc5f8fd0520d5a62e699036ea9312046<div class="markdown_content"><p>The attached patch adds two options to the set table command. <br />
The first option 'clip' removes the last text column with the point type and only writes the points into the table that fall inside the active range.<br />
The second option 'symerr' replaces the error bands ("y ylow yhigh") with a single value ("y yerr") specifying the errorbar, e.g. "10 9.5 10.5" becomes "10 0.5".<br />
Both options are useful when the set table command is used together with a more advanced plot command (e.g. smooth freq) and the resulting table is used afterwards to fit a function to this data.</p></div>#654 Add option covariancevariables to set fit and minor fit changes2014-06-20T07:36:21Z2014-06-20T07:36:21ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net062e2ebfdca807d0ecdb2990b0321e5c284759d4<div class="markdown_content"><p>In the attached patch I added a new overwrite option to the update command,<br />
so that<br />
update 'test.par' overwrite<br />
will overwrite the backup file 'test.par.old', if it already exists.</p></div>#654 Add option covariancevariables to set fit and minor fit changes2014-03-10T06:58:24Z2014-03-10T06:58:24ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net824e3189e4b8b88cc0b9354f9d873dbaeddd5f4d<div class="markdown_content"><blockquote>
<p>removal of the backup file in update: I might be wrong, but I think the idea was to <br />
preserve the original file in any case, not just in case of error.</p>
</blockquote>
<p>The problem of the old approach is, that it is not possible to run a script, which fits <br />
data and updates the parameter file, multiple times, since at the third time, the<br />
backup file already exists and the code errors out. One solution would be to generate<br />
a new file name in this case and the other (which I implemented) is to simply delete the<br />
backup file.</p></div>#654 Add option covariancevariables to set fit and minor fit changes2014-03-09T17:16:53Z2014-03-09T17:16:53ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.netfce96ec224bc4ba7b87393d103a5569c6834932b<div class="markdown_content"><blockquote>
<p>Could you please detail your envisaged usage? Since we already print the correlation <br />
matrix, wouldn't it be better to save this instead of the covariance matrix?</p>
</blockquote>
<p>I use the code for the calculation of error propagation in cases where no fit function<br />
could be found that has small correlation of the fit parameters. In this usage the<br />
covariances are needed and I found it easier to provide them directly instead of looking<br />
up the formula to calculate it from the correlation matrix.</p></div>Add abort command2014-03-07T11:13:22Z2014-03-07T11:13:22ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.netb356d6b1f69a11ab93ab405d94efdf9edab6c19e<div class="markdown_content"><p>The attached patch add an "abort" command, which directly bails to the command line<br />
(either the interactive gnuplot command line or the system command line in batch mode).<br />
I found this especially useful for debugging nested scripts.</p></div>Add abort command2014-03-07T11:13:22Z2014-03-07T11:13:22ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net4fa38936455721ea58018ea9bc8d1ad2bad428e2<div class="markdown_content"><p>Ticket 657 has been modified: Add abort command<br />
Edited By: Ethan Merritt (sfeam)<br />
Status updated: u'open' => u'pending-accepted'<br />
_milestone updated: '' => u'Version 5'</p></div>Add abort command2014-03-07T11:13:22Z2014-03-07T11:13:22ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.netb63d3c9fbfa29edae9ab327bf4e3cd92bc546244<div class="markdown_content"><p>Ticket 657 has been modified: Add abort command<br />
Edited By: Ethan Merritt (sfeam)<br />
Status updated: u'pending-accepted' => u'closed-accepted'</p></div>#656 Extend stats command: skewness and kurtosis + standard errors of moments2014-03-06T15:27:47Z2014-03-06T15:27:47ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net5b455a2890f94e1f58f106edf9d48e89f3b1cf2f<div class="markdown_content"><p>Thank you for the reindentaion and the good solution of the variance == 0 case.</p>
<blockquote>
<p>Your patch changes the definition of the variance from the population variance (n) to<br />
the sample variance (n-1).</p>
</blockquote>
<p>I didn't notice this change when implementing the two-pass algorithm. Since I hope that<br />
everybody who uses this function will have a large enough data set, where the difference <br />
between n and n-1 does not matter, you can revert this change. If one uses the sample<br />
variance one should include a test for the (n - 1 == 0) case and handle it like you<br />
did in the (variance == 0) case.</p></div>#656 Extend stats command: skewness and kurtosis + standard errors of moments2014-03-05T21:57:49Z2014-03-05T21:57:49ZAlexander Täschnerhttp://sourceforge.net/u/taschna/http://sourceforge.net70b3215d41752bf03647506785c13a27ab32f33a<div class="markdown_content"><blockquote>
<p>The alignment of the output of the new variables is different. As I don't see a <br />
sensible way to shorten the descriptions, all other output should probably be <br />
realigned. Any other idea?</p>
</blockquote>
<p>In the function two_column_output one could put the standard errors above the already not aligned output of the slope and intercept. For the function sgl_column_output I'm<br />
not sure.</p>
<blockquote>
<p>In degenerate cases the variance/stddev might be zero.</p>
</blockquote>
<p>In writing the patch I also thought about this case and decided to skip the test and<br />
risk an assignment of positive infinity since I didn't know what to assign to STATS_skewness and STATS_kurtosis when this happens.</p></div>