implementation dilema
- From: ma740988@xxxxxxxxx
- Date: 30 Mar 2006 17:29:00 -0800
Assume a system with three cards. For discussion purposes we'll call
them A B and C. Assume data comes in from an external source to A & B.
A and B computes mean on data and transmits result to C. C performs a
sum on the mean of A and B and transmits _its_ (C's result) result to A
and B. A and B runs an _algorithm_ on the data utilizing the result
from C. A and B sends result from the algorithm to C. A, B and C play
this 'game' (i.e A and B does something send results to C, C does
something send result to A and B and so on ) for say 7 iterations.
Assume pictorially this is akin to:
A & B C
---------------------------------------------------------
mean mean
standard deviation standard deviation
algorithm_ab1 algorithm_c1
algorithm_ab2 algorithm_c2
algorithm_ab3 algorithm_c3
algorithm_ab4 algorithm_c4
algorithm_ab5 algorithm_c5
The question: I'm trying to design a class that'll capture the fact
that the mean and standard deviation are common to 'both' ( code on A
and B is generic, so both here is A/B and C). From there the
algorithms are different.. I'm not sure if I'm missing a design
pattern or .. what's a good way to architect this?
One other thing. Some of the algorithms on both sides is comprised of
FFTs. For instance ( algorithm_ab1/ab2/ab4 is comprised of an FFT,
similarily algorithm_c2/c3/c4 is comprised of an FFT).
Not sure how to put this together nicely to make maintenance easy.
.
- Follow-Ups:
- Re: implementation dilema
- From: H. S. Lahman
- Re: implementation dilema
- From: Ed Kirwan
- Re: implementation dilema
- Prev by Date: RFC - New Object-Oriented Method of Parallel Programming
- Next by Date: Re: RFC - New Object-Oriented Method of Parallel Programming
- Previous by thread: RFC - New Object-Oriented Method of Parallel Programming
- Next by thread: Re: implementation dilema
- Index(es):
Relevant Pages
|