[Swift-devel] Use case and examples needed to avoid large directories

Ben Clifford benc at hawaga.org.uk
Sun Sep 30 14:48:26 CDT 2007



On Sun, 30 Sep 2007, Michael Wilde wrote:

> examples, where softmean needs to average a large set of inputs, and its
> behavior is, we thing, associatve.

mean as an operator is not usually associative - I'd think softmean isn't 
either if its doing per-pixel arithmetic means, which is what I've always 
assumed it was doing.

(e.g.   (1 mean 2) mean 3) = (( (1+2)/2) + 3)/2 = 2.25
        1 mean (2 mean 3) = ( 1 + ( (2+3)/2) ) /2 = 1.75

and neither are the actual mean of (1,2,3) which is 2.

-- 




More information about the Swift-devel mailing list