in reply to Re^2: Average Price Algorithm
in thread Average Price Algorithm
The test sample:
demoAllocation ( "Distribution: nasty", {a => 30, b => 30}, { '1.0' => 40, '2.0' => 10, '4.0' => 10, } );
Prints:
Distribution: nasty a: 17 @ $1.00 10 @ $2.00 3 @ $4.00 bucket avg: $1.63, deviation: $-0.033 b: 23 @ $1.00 7 @ $4.00 bucket avg: $1.70, deviation: $0.033
However inspection of the original data suggests that simply allocating half of each original parcel to the two groups gives a perfect result.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Average Price Algorithm
by ELISHEVA (Prior) on Feb 01, 2009 at 07:45 UTC |