C# Class MingStar.SimUniversity.AI.Learning.Vector

Show file Open project: MingStar/SimUniversity Class Usage Examples

Public Methods

Method Description
Add ( Vector v ) : Vector

Add another vector to this one

DotProduct ( Vector v ) : double

Compute the dot product of this vector and the given vector

Multiply ( double scalar ) : Vector

Multiply this vector by a scalar value

Subtract ( Vector v ) : Vector

Subtract another vector from this one

ToString ( ) : string
Vector ( int dimensions ) : System
this ( int index ) : double

Method Details

Add() public method

Add another vector to this one
public Add ( Vector v ) : Vector
v Vector
return Vector

DotProduct() public method

Compute the dot product of this vector and the given vector
public DotProduct ( Vector v ) : double
v Vector
return double

Multiply() public method

Multiply this vector by a scalar value
public Multiply ( double scalar ) : Vector
scalar double
return Vector

Subtract() public method

Subtract another vector from this one
public Subtract ( Vector v ) : Vector
v Vector
return Vector

ToString() public method

public ToString ( ) : string
return string

Vector() public method

public Vector ( int dimensions ) : System
dimensions int
return System

this() public method

public this ( int index ) : double
index int
return double