comparison liboctave/numeric/randpoisson.c @ 21568:3d60ed163b70

maint: Eliminate bad spacing around '='. * Figure.h, PopupMenuControl.cc, annotation-dialog.cc, gl-select.h, files-dock-widget.cc, find-files-dialog.cc, history-dock-widget.cc, file-editor.cc, main-window.cc, webinfo.cc, resource-manager.cc, shortcut-manager.cc, workspace-view.cc, __ichol__.cc, __ilu__.cc, __lin_interpn__.cc, bitfcns.cc, debug.cc, filter.cc, ft-text-renderer.cc, graphics.cc, graphics.in.h, hex2num.cc, jit-typeinfo.cc, load-save.cc, ls-mat5.cc, mxarray.in.h, oct-stream.cc, pr-output.cc, variables.cc, __init_fltk__.cc, __magick_read__.cc, chol.cc, ov-struct.cc, op-scm-cs.cc, pt-assign.cc, CollocWt.cc, randpoisson.c, inputParser.m, quadgk.m, waitbar.m, imwrite.m, __imread__.m, textread.m, fileattrib.m, __xzip__.m, what.m, fsolve.m, fix_depends.m, stemleaf.m, bicgstab.m, ichol.m, io.tst: maint: Eliminate bad spacing around '='.
author Rik <rik@octave.org>
date Wed, 30 Mar 2016 22:09:26 -0700
parents 6c2fd62db1f7
children
comparison
equal deleted inserted replaced
21567:3d25f9f4a62b 21568:3d60ed163b70
472 472
473 /* The cutoff of L <= 1e8 in the following two functions before using 473 /* The cutoff of L <= 1e8 in the following two functions before using
474 * the normal approximation is based on: 474 * the normal approximation is based on:
475 * > L=1e8; x=floor(linspace(0,2*L,1000)); 475 * > L=1e8; x=floor(linspace(0,2*L,1000));
476 * > max(abs(normal_pdf(x,L,L)-poisson_pdf(x,L))) 476 * > max(abs(normal_pdf(x,L,L)-poisson_pdf(x,L)))
477 * ans = 1.1376e-28 477 * ans = 1.1376e-28
478 * For L=1e7, the max is around 1e-9, which is within the step size of RUNI. 478 * For L=1e7, the max is around 1e-9, which is within the step size of RUNI.
479 * For L>1e10 the pprsc function breaks down, as I saw from the histogram 479 * For L>1e10 the pprsc function breaks down, as I saw from the histogram
480 * of a large sample, so 1e8 is both small enough and large enough. */ 480 * of a large sample, so 1e8 is both small enough and large enough. */
481 481
482 /* Generate a set of poisson numbers with the same distribution */ 482 /* Generate a set of poisson numbers with the same distribution */