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;
2using System.Collections.Generic;
8
10{
15 {
19 protected double[] homogeneousTransform = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 };
20
24 protected double variationWeight = 1;
25
30 : base(Arguments, ArgumentTypes, Start, Length, Expression)
31 {
32 }
33
37 public override string ToString()
38 {
39 return LambdaDefinition.ToString(this);
40 }
41
42 #region IFlameVariation Members
43
47 public void Initialize(double[] HomogeneousTransform, double VariationWeight)
48 {
49 this.homogeneousTransform = HomogeneousTransform;
50 this.variationWeight = VariationWeight;
51 }
52
56 public abstract void Operate(ref double x, ref double y);
57
58 #endregion
59
60 #region ILambdaExpression Members
61
63 {
66
67 this.Operate(ref x, ref y);
68
69 return new DoubleVector(new double[] { x, y });
70 }
71
72 int ILambdaExpression.NrArguments
73 {
74 get { return 2; }
75 }
76
77 string[] ILambdaExpression.ArgumentNames
78 {
79 get { return FlameVariationZeroParameters.parameterNames; }
80 }
81
82 ArgumentType[] ILambdaExpression.ArgumentTypes
83 {
84 get { return FlameVariationZeroParameters.parameterTypes; }
85 }
86
87 #endregion
88
89 #region IElement members
90
94 public IElement Encapsulate(ICollection<IElement> Elements, ScriptNode Node)
95 {
96 return this;
97 }
98
102 public bool TryConvertTo(Type DesiredType, out object Value)
103 {
104 Value = null;
105 return false;
106 }
107
112 {
113 get
114 {
116 }
117 }
118
123 {
124 get
125 {
126 return this;
127 }
128 }
129
133 public bool IsScalar
134 {
135 get
136 {
137 return false;
138 }
139 }
140
144 public ICollection<IElement> ChildElements
145 {
146 get
147 {
148 return new IElement[0];
149 }
150 }
151
152 #endregion
153
154 }
155}
Class managing a script expression.
Definition: Expression.cs:39
static double ToDouble(object Object)
Converts an object to a double value.
Definition: Expression.cs:4824
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:20
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