Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Random Number Manual Examples - Errors

Date2008-02-06 19:14
From"Art Hunkins"
SubjectRe: [Cs-dev] Random Number Manual Examples - Errors
Andres:

As verified by Dodge and Jerse, you are right about bexprand; it should 
be -krange to +krange.

Trirand, however, goes from 0 to +krange. The doc and example should 
completely parallel unirand.

Art Hunkins

----- Original Message ----- 
From: "Andres Cabrera" 
To: "Art Hunkins" ; "Developer discussions" 

Sent: Wednesday, February 06, 2008 1:04 PM
Subject: Re: [Cs-dev] Random Number Manual Examples - Errors


> Hi Art and Anthony,
>
> Thanks for the corrections, I've integrated them.
>
> I think trirand and bexprand should output values from -krange to
> +krange, or am I wrong?
>
> Cheers,
> Andrés
>
>
> El mié, 06-02-2008 a las 06:00 -0500, Art Hunkins escribió:
>> Andres:
>>
>> Anthony is correct; the trirand description is wrong.
>>
>> It should read (according to Dodge and Jerse, p.271):
>> trirand -- Triangular distribution random number generator
>>
>> Also, the following corrections should be made to the examples (for the
>> opcodes) below:
>>
>> For betarand, bexprnd, trirand, unirand and weibull
>> the final sentence should read:
>> Its output should include *a line* like.....
>>
>> For betarand and trirand
>> the output should be between 0 and 1.
>>
>> For bexprnd
>> the output should be between -1 and +1
>>
>> Art Hunkins
>>
>> ----- Original Message ----- 
>> From: "Anthony Kozar" 
>> To: "Csound Developer list" 
>> Sent: Tuesday, February 05, 2008 11:56 PM
>> Subject: Re: [Cs-dev] Trirand Example
>>
>>
>> I was wondering the other day whether this statement about trirand is
>> correct or not:
>>
>> "trirand < Linear distribution random number generator."
>>
>> I think it would be great if the various noise opcodes gave at least a 
>> short
>> description of how they differ from each other (i.e. describe the
>> distributions).  I don't have access to the Dodge/Jerse or Roads books to
>> look up the citations.
>>
>> Anthony
>>
>> Art Hunkins wrote on 2/5/08 11:25 PM:
>>
>> > Andres:
>> > The trirand example (in manual) has mistakes.
>> >
>> > Since the example runs at i-time, the last sentence should read:
>> > "Its output should contain a line like this:"
>> >
>> > Also, and more importantly, the output should be a value between -1 and
>> > +1.
>> >
>> > Art Hunkins
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-d