Free cookie consent management tool by TermsFeed Policy Generator

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

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

#2283 Final

File size: 783 bytes
Line 
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    {
11        public SelectionIndicator()
12        {
13           
14        }
15        public SelectionIndicator(int goodSelections, int totalSelections, int evaluation)
16        {
17            GoodSelections = goodSelections;
18            TotalSelections = totalSelections;
19            Evaluation = evaluation;
20        }
21
22        public int GoodSelections { get; set; }
23        public int TotalSelections { get; set; }
24
25        public int Evaluation { get; set; }
26
27        public double Indicator { get { return Math.Round((double)GoodSelections / TotalSelections, 5); } }
28    }
29}
Note: See TracBrowser for help on using the repository browser.