Jump to content
FHannes

SCAR Divi 3.28 Alpha

Recommended Posts

The first Divi 3.28 release is now available. So far the release is completely centered around new functions. The most prominent ones are the Gaussian function based algorithms. They allow you to generate random numbers that are closer to the minimum value of the range based on a given variance.

 

Regular: http://svn.scar-divi.com/scar/

Portable: http://svn.scar-divi.com/scar_portable/

 

Changelog:

Bugfixes:
- Define not closed on code completion error
- Loading toolbar positions could throw an error
- GetCursorType was not working properly

Improvements:
- Dock positions are no longer saved

Additions:
- function Ln(const X: Extended): Extended;
- function Gauss(const x, Mean, Variance: Extended): Extended;
- function RandG(const Variance: Extended): Extended;
- function RandomG(const Range: Integer; const Variance: Extended): Integer;
- function RandomRangeG(const AFrom, ATo: Integer; const Variance: Extended): Integer;
- function RndCirclePoint(const mx, my, r: Integer): TPoint;
- function RndCirclePointG(const mx, my, r: Integer; const Variance: Extended): TPoint;
- function RndBoxPoint(const b: TBox): TPoint;
- function RndBoxPointG(const b: TBox; const Variance: Extended): TPoint;

 

An example of 10000 random circle points plotted at variance 2:

RandomGauss-Var2.png

 

The same for variance 5:

RandomGauss-Var5.png

 

And for variance 1:

RandomGauss-Var1.png

 

Enjoy the release :)

 

~Freddy

Edited by Freddy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...