[Swift-devel] Use case and examples needed to avoid large directories
Michael Wilde
wilde at mcs.anl.gov
Tue Oct 2 13:07:14 CDT 2007
Good point. To do this with any kind of mean (image or arithmetic)
you'd need to add a weight as an argument (I think).
I dont know if Andrew's app is associative or can be made so, or can be
re-coded to take an arbitrary # of input files.
Andrew, can you comment on that?
(this was sitting in my to-send box since Sun - may have already been
answered)
- Mike
On 9/30/07 2:48 PM, Ben Clifford wrote:
>
> 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