C# Class YAMP.Plot2DValue

Is the type for basic 2D plotting.
Inheritance: XYPlotValue
显示文件 Open project: FlorianRappl/YAMP Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddPoints ( MatrixValue m ) : void

Adds points given by a matrix. Vector ? x Values will be generated Matrix ? Investigates which dimension is bigger and takes the larger one as values, the lighter one as series. In a matrix the first series is always excluded and represents the x values.

AddPoints ( MatrixValue x, MatrixValue y ) : void

Adds points with 2 different matrices. If x is a vector then it will represent the x values for different series that are present in y. Otherwise both matrices are interpreted as "stand-alone" and will be just added to the AddPoints that take 1 matrix.

AddValues ( double _x, double _y ) : void
Deserialize ( byte content ) : Value

Converts a set of bytes to a new instance.

Plot2DValue ( ) : System

Creates a new instance.

Serialize ( ) : byte[]

Converts the given instance to an array of bytes.

this ( int index, int point ) : PointPair

Gets a certain point of the specified series.

this ( int index ) : Points

Gets the series at the specified index.

Method Details

AddPoints() public method

Adds points given by a matrix. Vector ? x Values will be generated Matrix ? Investigates which dimension is bigger and takes the larger one as values, the lighter one as series. In a matrix the first series is always excluded and represents the x values.
public AddPoints ( MatrixValue m ) : void
m MatrixValue The matrix with the (multiple) series.
return void

AddPoints() public method

Adds points with 2 different matrices. If x is a vector then it will represent the x values for different series that are present in y. Otherwise both matrices are interpreted as "stand-alone" and will be just added to the AddPoints that take 1 matrix.
public AddPoints ( MatrixValue x, MatrixValue y ) : void
x MatrixValue The first matrix, usually a vector (set of x values).
y MatrixValue The second matrix, usually a set of y series (each series is a set of y values).
return void

AddValues() public method

public AddValues ( double _x, double _y ) : void
_x double
_y double
return void

Deserialize() public method

Converts a set of bytes to a new instance.
public Deserialize ( byte content ) : Value
content byte The binary representation.
return Value

Plot2DValue() public method

Creates a new instance.
public Plot2DValue ( ) : System
return System

Serialize() public method

Converts the given instance to an array of bytes.
public Serialize ( ) : byte[]
return byte[]

this() public method

Gets a certain point of the specified series.
public this ( int index, int point ) : PointPair
index int The 0-based index of the series.
point int The 0-based index of the point.
return PointPair

this() public method

Gets the series at the specified index.
public this ( int index ) : Points
index int The 0-based index of the series.
return Points