Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2895_PushGP_GenealogyAnalysis/HeuristicLab.Problems.ProgramSynthesis/Push/Extensions/LongExtensions.cs @ 16752

Last change on this file since 16752 was 15771, checked in by bburlacu, 7 years ago

#2895: Add solution skeleton for PushGP with genealogy analysis.

File size: 231 bytes
Line 
1using System;
2
3namespace HeuristicLab.Problems.ProgramSynthesis {
4  public static class LongExtensions {
5    public static int AsInt(this long value, int length) {
6      return (int)Math.Abs(value % length);
7    }
8  }
9}
Note: See TracBrowser for help on using the repository browser.