You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Vector Structure > Vector Methods > Ramp Method > Vector.Ramp Method ()
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Vector.Ramp Method ()

Fills the calling vector with a series following linear rule.

Syntax
C#
Visual Basic
public TVec Ramp();

Fills the calling vector with a series following the rule: 

 

Values[k] := k

 

(Offset is zero and Step is one). If the calling vector is complex, only the real part is set.

var a: Vector; begin a.Size(5,True); a.Ramp(0,PI); a.Sin; end;

which is identical to:

a.Size(5,True); for i:= 0 to a.Length-1 do a[i] := sin(i*PI);
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!