Re: [freenet-dev] Best estimator

2003-10-02 Thread Benny Amorsen
On fre, 2003-10-03 at 04:17, Ian Clarke wrote: Jonathan Howard wrote: The current StandardNodeEstimator.estimate() is trying to calculate the average time a node will take for any outcome. Shouldn't it be returning the time if it succeeds + punishment for when it fails? It is (or

Re: [freenet-dev] Best estimator

2003-10-02 Thread Jonathan Howard
Ian Clarke wrote: Jonathan Howard wrote: The current StandardNodeEstimator.estimate() is trying to calculate the average time a node will take for any outcome. Shouldn't it be returning the time if it succeeds + punishment for when it fails? It is (or should be). It returns

Re: [freenet-dev] Best estimator

2003-10-02 Thread Ian Clarke
Jonathan Howard wrote: That shows what I say first and is dependent on (for working) as desired tSuccess tFailure. (pSuccess + pFailure) = 1 tSuccess ~= tFailure - Actually no, tFailure should typically be much larger than tSuccess as it includes the estimated time to rerequest the data from

[freenet-dev] Best estimator

2003-10-01 Thread Jonathan Howard
The current StandardNodeEstimator.estimate() is trying to calculate the average time a node will take for any outcome. Shouldn't it be returning the time if it succeeds + punishment for when it fails? I'm suggesting changing 174: estimate += pSuccess * tSuccess; to estimate += tSuccess;

Re: [freenet-dev] Best estimator

2003-10-01 Thread Ian Clarke
Jonathan Howard wrote: The current StandardNodeEstimator.estimate() is trying to calculate the average time a node will take for any outcome. Shouldn't it be returning the time if it succeeds + punishment for when it fails? It is (or should be). It returns pSuccess*tSuccess + pFailure*tFailure