forked from andrewkirillov/AForge.NET
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathISelectionMethod.cs
39 lines (37 loc) · 1.25 KB
/
ISelectionMethod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// AForge Genetic Library
// AForge.NET framework
// http://www.aforgenet.com/framework/
//
// Copyright © Andrew Kirillov, 2006-2009
// andrew.kirillov@aforgenet.com
//
namespace AForge.Genetic
{
using System;
using System.Collections;
using System.Collections.Generic;
/// <summary>
/// Genetic selection method interface.
/// </summary>
///
/// <remarks>The interface should be implemented by all classes, which
/// implement genetic selection algorithm. These algorithms select members of
/// current generation, which should be kept in the new generation. Basically,
/// these algorithms filter provided population keeping only specified amount of
/// members.</remarks>
///
public interface ISelectionMethod
{
/// <summary>
/// Apply selection to the specified population.
/// </summary>
///
/// <param name="chromosomes">Population, which should be filtered.</param>
/// <param name="size">The amount of chromosomes to keep.</param>
///
/// <remarks>Filters specified population according to the implemented
/// selection algorithm.</remarks>
///
void ApplySelection( List<IChromosome> chromosomes, int size );
}
}