Changeset 12667 for stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Transformations/ExponentialTransformation.cs
- Timestamp:
- 07/08/15 09:50:00 (9 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 12612
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis merged: 12612
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Transformations/ExponentialTransformation.cs
r11114 r12667 1 1 using System; 2 2 using System.Collections.Generic; 3 using System.Linq; 3 4 using HeuristicLab.Common; 4 5 using HeuristicLab.Core; … … 8 9 9 10 namespace HeuristicLab.Problems.DataAnalysis { 11 [StorableClass] 10 12 [Item("Exponential Transformation", "f(x) = b ^ x | Represents a exponential transformation.")] 11 13 public class ExponentialTransformation : Transformation<double> { … … 44 46 45 47 public override IEnumerable<double> Apply(IEnumerable<double> data) { 46 foreach (double d in data) { 47 yield return Math.Pow(Base, d); 48 } 48 return data.Select(d => Math.Pow(Base, d)); 49 49 } 50 50
Note: See TracChangeset
for help on using the changeset viewer.