Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/Evaluation/SelectionIndicator.cs @ 13599

Last change on this file since 13599 was 12840, checked in by aballeit, 9 years ago

#2283 Final

File size: 783 bytes
RevLine 
[12815]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6
7namespace Evaluation
8{
9    public class SelectionIndicator
10    {
[12824]11        public SelectionIndicator()
12        {
13           
14        }
[12840]15        public SelectionIndicator(int goodSelections, int totalSelections, int evaluation)
[12815]16        {
17            GoodSelections = goodSelections;
18            TotalSelections = totalSelections;
[12840]19            Evaluation = evaluation;
[12815]20        }
21
22        public int GoodSelections { get; set; }
23        public int TotalSelections { get; set; }
24
[12840]25        public int Evaluation { get; set; }
26
[12815]27        public double Indicator { get { return Math.Round((double)GoodSelections / TotalSelections, 5); } }
28    }
29}
Note: See TracBrowser for help on using the repository browser.