Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 53396 invoked by uid 500); 13 Dec 2001 15:58:17 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 53384 invoked from network); 13 Dec 2001 15:58:16 -0000 Message-ID: <3C18D08C.4010207@apache.org> Date: Thu, 13 Dec 2001 11:00:12 -0500 From: Berin Loritsch User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.6) Gecko/20011120 X-Accept-Language: en-us MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: Re: Adaptive Caching [was Re: initial checkin of the Scheme code] References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Leo Sutic wrote: > >>From: Berin Loritsch [mailto:bloritsch@apache.org] >>Stefano Mazzocchi wrote: >> >>I >>don't know >>what the letter above the sigma or below the sigma is supposed to signify. >> > > The sigma is like a summing for-loop. Example: > > >>> n >>> -- >>> Invalid(r) = \ (V(r,I ) + Pc(r,I ) + s(r,I )) >>> / i i i >>> -- >>> i = 1 >>> >>> > > would be like (with an asuumption of data types): > > float Invalid (float r) { > float sum = 0.0; > for (int i = 1; i <= n; i++) { > sum += (V(r,I[i]) + Pc(r,I[i]) + s(r,I[i])) > } > return sum; > } > > So, you can read the sigma as "sum of for all > integer values of between variable below the sigma's initial value> and of the sigma>". For the above: "sum of (V(r,Ii) + Pc(r,Ii) + s(r,Ii)) for > all integer values of i between 1 and n". Thanks Leo! That helps _alot_. So, how do we decide what "n" and "m" are? -- "They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org