pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moments.c


From: Jason Stover
Subject: Re: moments.c
Date: Thu, 22 Mar 2007 09:50:10 -0400
User-agent: Mutt/1.5.10i

On Wed, Mar 21, 2007 at 08:43:37PM -0700, Ben Pfaff wrote:
...
> And then the main loop becomes:
> 
>   moments1_create()
>   correlation_create()
>   for each case C do:
>       get x and y from case
>       moments1_add(&m1_x, x)
>       moments1_add(&m1_y, y)
>       correlations_add(x, &m1_x, y, &m1_y)
>   moments1_calculate()
>   correlation_calculate()
> 
> This works, no?  And then correlations doesn't have a dependency
> on moments1 except as a user.  We could even get rid of that
> minor dependency by changing the interface from taking the
> moments1 objects to taking the value of the mean.
> 
> Let me know what you think.

Looks good to me.

-Jason




reply via email to

[Prev in Thread] Current Thread [Next in Thread]