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

Afficher le fichier Open project: MingStar/SimUniversity Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Add another vector to this one
public Add ( Vector v ) : Vector
v Vector
Résultat Vector

DotProduct() public méthode

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

Multiply() public méthode

Multiply this vector by a scalar value
public Multiply ( double scalar ) : Vector
scalar double
Résultat Vector

Subtract() public méthode

Subtract another vector from this one
public Subtract ( Vector v ) : Vector
v Vector
Résultat Vector

ToString() public méthode

public ToString ( ) : string
Résultat string

Vector() public méthode

public Vector ( int dimensions ) : System
dimensions int
Résultat System

this() public méthode

public this ( int index ) : double
index int
Résultat double