Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
FlameVariationMultipleParameters.cs
1using System;
9
11{
16 {
20 protected double[] homogeneousTransform = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 };
21
25 protected double variationWeight = 1;
26
31 : base(Arguments, ArgumentTypes, Start, Length, Expression)
32 {
33 }
34
38 public override string ToString()
39 {
40 return LambdaDefinition.ToString(this);
41 }
42
43 #region IFlameVariation Members
44
48 public void Initialize(double[] HomogeneousTransform, double VariationWeight)
49 {
50 this.homogeneousTransform = HomogeneousTransform;
51 this.variationWeight = VariationWeight;
52 }
53
57 public abstract void Operate(ref double x, ref double y);
58
59 #endregion
60
61 #region ILambdaExpression Members
62
64 {
67
68 this.Operate(ref x, ref y);
69
70 return new DoubleVector(new double[] { x, y });
71 }
72
73 int ILambdaExpression.NrArguments
74 {
75 get { return 2; }
76 }
77
78 string[] ILambdaExpression.ArgumentNames
79 {
80 get { return FlameVariationZeroParameters.parameterNames; }
81 }
82
83 ArgumentType[] ILambdaExpression.ArgumentTypes
84 {
85 get { return FlameVariationZeroParameters.parameterTypes; }
86 }
87
88 #endregion
89
90 #region IElement members
91
96 {
97 return this;
98 }
99
103 public IElement Encapsulate(ICollection<IElement> Elements, ScriptNode Node)
104 {
105 return this;
106 }
107
111 public bool TryConvertTo(Type DesiredType, out object Value)
112 {
113 Value = null;
114 return false;
115 }
116
121 {
122 get
123 {
125 }
126 }
127
132 {
133 get
134 {
135 return this;
136 }
137 }
138
142 public bool IsScalar
143 {
144 get
145 {
146 return false;
147 }
148 }
149
153 public ICollection<IElement> ChildElements
154 {
155 get
156 {
157 return Array.Empty<IElement>();
158 }
159 }
160
161 #endregion
162
163 }
164}
A chunked list is a linked list of chunks of objects of type T .
Definition: ChunkedList.cs:54
Class managing a script expression.
Definition: Expression.cs:41
static double ToDouble(object Object)
Converts an object to a double value.
Definition: Expression.cs:5110
IElement Encapsulate(ChunkedList< IElement > Elements, ScriptNode Node)
TODO
abstract void Operate(ref double x, ref double y)
TODO
void Initialize(double[] HomogeneousTransform, double VariationWeight)
TODO
FlameVariationMultipleParameters(ScriptNode[] Arguments, ArgumentType[] ArgumentTypes, int Start, int Length, Expression Expression)
TODO
IElement Encapsulate(ICollection< IElement > Elements, ScriptNode Node)
TODO
static readonly SetOfVariations Instance
TODO
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
Base class for all nodes in a parsed script tree.
Definition: ScriptNode.cs:69
int Length
Length of expression covered by node.
Definition: ScriptNode.cs:101
int Start
Start position in script expression.
Definition: ScriptNode.cs:92
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:21
Basic interface for all types of sets.
Definition: ISet.cs:10
Base interface for lambda expressions.
IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the lambda expression.
ArgumentType
Type of parameter used in a function definition or a lambda definition.
Definition: IFunction.cs:9