Free cookie consent management tool by TermsFeed Policy Generator

source: branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/ListExtensions.cs @ 14591

Last change on this file since 14591 was 8744, checked in by epitzer, 12 years ago

Improve Information Analyzer #1696

  • Configurable discretized or full quantile analysis
  • Configurable shape size
  • Include peak information values and deltas in results
File size: 375 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Analysis.FitnessLandscape {
7  public static class ListExtensions {
8    public static void DuplicateLast<T>(this IList<T> l) {
9      l.Add(l[l.Count-1]);
10    }
11    public static T Last<T>(this IList<T> l) {
12      return l[l.Count - 1];
13    }
14  }
15}
Note: See TracBrowser for help on using the repository browser.