Evolife
Evolife has been developed to study Genetic algorithms, Natural evolution and behavioural ecology.
Public Member Functions | Public Attributes | List of all members
Evolife.Graphics.Curves.Curve Class Reference

Holds a complete (continuous) curve in memory. More...

Public Member Functions

def __init__ (self, colour, ID, ColName=None, Legend=None)
 creation of a curve. More...
 
def erase (self)
 reset curve More...
 
def start (self, StartPos)
 A curve is a list of successive connected positions + a list of dicontinuities. More...
 
def name (self, N="")
 sets the curve's name More...
 
def legend (self, L="")
 sets the curve's caption More...
 
def last (self)
 returns the last position in the curve More...
 
def add (self, Pos, Draw=True)
 Adds a new position to the curve. More...
 
def length (self)
 
def X_coord (self)
 list of x-coordinates More...
 
def Y_coord (self)
 list of y-coordinates More...
 
def Avg (self, start=0)
 compute average value of Y_coord More...
 
def __iter__ (self)
 
def __next__ (self)
 2.6-3.x version More...
 
def next (self)
 Iteratively returns segments of the curve. More...
 
def __repr__ (self)
 

Public Attributes

 ID
 
 colour
 
 Name
 
 ColName
 
 Legend
 
 thick
 
 CurrentPosition
 
 positions
 
 discontinuities
 
 currentDiscontinuity
 

Detailed Description

Holds a complete (continuous) curve in memory.

Definition at line 159 of file Curves.py.

Constructor & Destructor Documentation

◆ __init__()

def Evolife.Graphics.Curves.Curve.__init__ (   self,
  colour,
  ID,
  ColName = None,
  Legend = None 
)

creation of a curve.

A curve is a list of successive connected positions + a list of dicontinuities

Definition at line 162 of file Curves.py.

Member Function Documentation

◆ __iter__()

def Evolife.Graphics.Curves.Curve.__iter__ (   self)

Definition at line 242 of file Curves.py.

◆ __next__()

def Evolife.Graphics.Curves.Curve.__next__ (   self)

2.6-3.x version

Definition at line 246 of file Curves.py.

◆ __repr__()

def Evolife.Graphics.Curves.Curve.__repr__ (   self)

Definition at line 268 of file Curves.py.

◆ add()

def Evolife.Graphics.Curves.Curve.add (   self,
  Pos,
  Draw = True 
)

Adds a new position to the curve.

Notes a discontinuity if 'Draw' is False.

Definition at line 208 of file Curves.py.

◆ Avg()

def Evolife.Graphics.Curves.Curve.Avg (   self,
  start = 0 
)

compute average value of Y_coord

Definition at line 230 of file Curves.py.

◆ erase()

def Evolife.Graphics.Curves.Curve.erase (   self)

reset curve

Definition at line 178 of file Curves.py.

◆ last()

def Evolife.Graphics.Curves.Curve.last (   self)

returns the last position in the curve

Definition at line 203 of file Curves.py.

◆ legend()

def Evolife.Graphics.Curves.Curve.legend (   self,
  L = "" 
)

sets the curve's caption

Definition at line 197 of file Curves.py.

◆ length()

def Evolife.Graphics.Curves.Curve.length (   self)

Definition at line 217 of file Curves.py.

◆ name()

def Evolife.Graphics.Curves.Curve.name (   self,
  N = "" 
)

sets the curve's name

Definition at line 191 of file Curves.py.

◆ next()

def Evolife.Graphics.Curves.Curve.next (   self)

Iteratively returns segments of the curve.

Definition at line 250 of file Curves.py.

◆ start()

def Evolife.Graphics.Curves.Curve.start (   self,
  StartPos 
)

A curve is a list of successive connected positions + a list of dicontinuities.

Definition at line 183 of file Curves.py.

◆ X_coord()

def Evolife.Graphics.Curves.Curve.X_coord (   self)

list of x-coordinates

Definition at line 220 of file Curves.py.

◆ Y_coord()

def Evolife.Graphics.Curves.Curve.Y_coord (   self)

list of y-coordinates

Definition at line 225 of file Curves.py.

Member Data Documentation

◆ ColName

Evolife.Graphics.Curves.Curve.ColName

Definition at line 169 of file Curves.py.

◆ colour

Evolife.Graphics.Curves.Curve.colour

Definition at line 167 of file Curves.py.

◆ currentDiscontinuity

Evolife.Graphics.Curves.Curve.currentDiscontinuity

Definition at line 189 of file Curves.py.

◆ CurrentPosition

Evolife.Graphics.Curves.Curve.CurrentPosition

Definition at line 186 of file Curves.py.

◆ discontinuities

Evolife.Graphics.Curves.Curve.discontinuities

Definition at line 188 of file Curves.py.

◆ ID

Evolife.Graphics.Curves.Curve.ID

Definition at line 166 of file Curves.py.

◆ Legend

Evolife.Graphics.Curves.Curve.Legend

Definition at line 174 of file Curves.py.

◆ Name

Evolife.Graphics.Curves.Curve.Name

Definition at line 168 of file Curves.py.

◆ positions

Evolife.Graphics.Curves.Curve.positions

Definition at line 187 of file Curves.py.

◆ thick

Evolife.Graphics.Curves.Curve.thick

Definition at line 175 of file Curves.py.


The documentation for this class was generated from the following file: