in reply to Random partitions?

I was curious what your metric would be for a good distribution vs. bad?

For instance, what is the mean and variance for the step size? Or if there's some density metric over some interval, such as count?

Deciding what this should be might lead more directly to an acceptable algorithm.

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^2: Random partitions?
by BrowserUk (Patriarch) on May 05, 2015 at 10:35 UTC
    For instance, what is the mean and variance for the step size? Or if there's some density metric over some interval, such as count?

    I needed to generate some (eventually large) test datasets for my graphing app; so all I really needed was something that was roughly a straight line between two points, but with enough variations to allow co-planer lines to be discernible. (Ie. not overlayed.)

    It's for checking that boundary, ranging, scaling & tick mark calculations etc. do sensible things with generic datasets.

    So far, I'm very happy with what came out of this thread (see:Re: Random partitions? (Thanks and solution.)). With the addition of another switch, -P=2.718 the program raises the supplied number to the powers of each randomly generated value before output, thus I can test for the autoselecting of log scales.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked