C# Class SoundLibrary.Mathematics.Function.Function

関数を表すクラスの抽象基底。
Inheritance: ICloneable
Datei anzeigen Open project: ufcpp/UfcppSample Class Usage Examples

Public Methods

Method Description
Abs ( Function f ) : Unary
Acos ( Function f ) : Unary
Add ( Function f ) : Function

加算。

Asin ( Function f ) : Unary
Atan ( Function f ) : Unary
Atan2 ( Function f, Function g ) : Binary
Bind ( ) : Function

値を固定する。 例えば、f(x, y) っていう関数があったとして、 y = 1 で固定した関数 g(x) = f(x, 1) を求めたり。

Clone ( ) : Function
Cos ( Function f ) : Unary
Cosh ( Function f ) : Unary
Differentiate ( Variable x ) : Function

(x による偏)導関数を求める。 解析的に計算。 解析的に計算できない関数の場合、InvalidOperationException を throw する。

Divide ( Function f ) : Function

除算。

Exp ( Function f ) : Unary
GetComplexPart ( Function &re, Function &im ) : void

関数 f(z) を複素関数とみなしたとき、その実部と虚部 Re[f](Re(z), Im(z)), Im[f](Re(z), Im(z) を求める。 例えば、Exp の場合、 reY = Exp(reX) * Cos(imX), imY = Exp(reX) * Sin(imX)

GetValue ( ) : ValueType
GetVariableList ( ) : ArrayList

その関数に含まれている変数のリストを求める。 例えば、f(g(x, y), h(x)) + i(y, z) とか言うように、 関数の合成・四則演算を使って作った関数の場合、{x, y, z} というリストを返す。

GetVariableTable ( ) : VariableTable
I ( Function f ) : Function
Log ( Function f, Function g ) : Binary
Log ( Function f ) : Unary
Log10 ( Function f ) : Unary
Multiply ( Function f ) : Function

乗算。

Negate ( ) : Function

正負反転。

Norm ( ) : Function

複素関数のノルム関数 |f(z)|^2 を求める。

Optimize ( ) : Function

内部構造を最適化する。 例えば、1×f → f, 0×f → 0。

一発で100%完璧な最適化が掛かるわけではない。 2・3度繰り返すことで、より最適化がかかる場合もあり。

Optimize ( int n ) : Function

内部構造を最適化する。

一発で完全な最適化が出来ないので、何度か処理を繰り返す。

Pow ( Function f, Function g ) : Binary
Sin ( Function f ) : Unary
Sinh ( Function f ) : Unary
Sqrt ( Function f ) : Unary
Subtract ( Function f ) : Function

減算。

Tan ( Function f ) : Unary
Tanh ( Function f ) : Unary
X ( Function f ) : Unary
X ( Function f, int order ) : Unary
X ( Function f, int order, double coef ) : Unary
operator ( ) : Function
this ( VariableTable t ) : ValueType

値の計算。

Private Methods

Method Description
ICloneable ( ) : object

Method Details

Abs() public static method

public static Abs ( Function f ) : Unary
f Function
return Unary

Acos() public static method

public static Acos ( Function f ) : Unary
f Function
return Unary

Add() public method

加算。
public Add ( Function f ) : Function
f Function オペランド
return Function

Asin() public static method

public static Asin ( Function f ) : Unary
f Function
return Unary

Atan() public static method

public static Atan ( Function f ) : Unary
f Function
return Unary

Atan2() public static method

public static Atan2 ( Function f, Function g ) : Binary
f Function
g Function
return Binary

Bind() public abstract method

値を固定する。 例えば、f(x, y) っていう関数があったとして、 y = 1 で固定した関数 g(x) = f(x, 1) を求めたり。
public abstract Bind ( ) : Function
return Function

Clone() public abstract method

public abstract Clone ( ) : Function
return Function

Cos() public static method

public static Cos ( Function f ) : Unary
f Function
return Unary

Cosh() public static method

public static Cosh ( Function f ) : Unary
f Function
return Unary

Differentiate() public method

(x による偏)導関数を求める。 解析的に計算。 解析的に計算できない関数の場合、InvalidOperationException を throw する。
public Differentiate ( Variable x ) : Function
x Variable 微分対象となる変数
return Function

Divide() public method

除算。
public Divide ( Function f ) : Function
f Function オペランド
return Function

Exp() public static method

public static Exp ( Function f ) : Unary
f Function
return Unary

GetComplexPart() public method

関数 f(z) を複素関数とみなしたとき、その実部と虚部 Re[f](Re(z), Im(z)), Im[f](Re(z), Im(z) を求める。 例えば、Exp の場合、 reY = Exp(reX) * Cos(imX), imY = Exp(reX) * Sin(imX)
public GetComplexPart ( Function &re, Function &im ) : void
re Function
im Function
return void

GetValue() public abstract method

public abstract GetValue ( ) : ValueType
return System.ValueType

GetVariableList() public abstract method

その関数に含まれている変数のリストを求める。 例えば、f(g(x, y), h(x)) + i(y, z) とか言うように、 関数の合成・四則演算を使って作った関数の場合、{x, y, z} というリストを返す。
public abstract GetVariableList ( ) : ArrayList
return System.Collections.ArrayList

GetVariableTable() public method

public GetVariableTable ( ) : VariableTable
return VariableTable

I() public static method

public static I ( Function f ) : Function
f Function
return Function

Log() public static method

public static Log ( Function f, Function g ) : Binary
f Function
g Function
return Binary

Log() public static method

public static Log ( Function f ) : Unary
f Function
return Unary

Log10() public static method

public static Log10 ( Function f ) : Unary
f Function
return Unary

Multiply() public method

乗算。
public Multiply ( Function f ) : Function
f Function オペランド
return Function

Negate() public method

正負反転。
public Negate ( ) : Function
return Function

Norm() public method

複素関数のノルム関数 |f(z)|^2 を求める。
public Norm ( ) : Function
return Function

Optimize() public method

内部構造を最適化する。 例えば、1×f → f, 0×f → 0。
一発で100%完璧な最適化が掛かるわけではない。 2・3度繰り返すことで、より最適化がかかる場合もあり。
public Optimize ( ) : Function
return Function

Optimize() public method

内部構造を最適化する。
一発で完全な最適化が出来ないので、何度か処理を繰り返す。
public Optimize ( int n ) : Function
n int 反復回数
return Function

Pow() public static method

public static Pow ( Function f, Function g ) : Binary
f Function
g Function
return Binary

Sin() public static method

public static Sin ( Function f ) : Unary
f Function
return Unary

Sinh() public static method

public static Sinh ( Function f ) : Unary
f Function
return Unary

Sqrt() public static method

public static Sqrt ( Function f ) : Unary
f Function
return Unary

Subtract() public method

減算。
public Subtract ( Function f ) : Function
f Function オペランド
return Function

Tan() public static method

public static Tan ( Function f ) : Unary
f Function
return Unary

Tanh() public static method

public static Tanh ( Function f ) : Unary
f Function
return Unary

X() public static method

public static X ( Function f ) : Unary
f Function
return Unary

X() public static method

public static X ( Function f, int order ) : Unary
f Function
order int
return Unary

X() public static method

public static X ( Function f, int order, double coef ) : Unary
f Function
order int
coef double
return Unary

operator() public static method

public static operator ( ) : Function
return Function

this() public method

値の計算。
public this ( VariableTable t ) : ValueType
t VariableTable
return System.ValueType