Changeset 229 for trunk/sources/HeuristicLab.Functions/Logarithm.cs
- Timestamp:
- 05/11/08 08:55:19 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Functions/Logarithm.cs
r155 r229 29 29 30 30 namespace HeuristicLab.Functions { 31 public class Logarithm : FunctionBase {31 public sealed class Logarithm : FunctionBase { 32 32 public override string Description { 33 33 get { return "Returns the natural (base e) logarithm of the first sub-tree."; } … … 40 40 } 41 41 42 public override double Apply(Dataset dataset, int sampleIndex, double[] args) {43 return Math.Log(args[0]);44 }45 46 42 public override void Accept(IFunctionVisitor visitor) { 47 43 visitor.Visit(this);
Note: See TracChangeset
for help on using the changeset viewer.