-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunction.java
More file actions
39 lines (38 loc) · 1.15 KB
/
Function.java
File metadata and controls
39 lines (38 loc) · 1.15 KB
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
/**
* A Visualisation Tool for
* Selection Hyper-Heuristics <br>
* <br>
* http://code.google.com/p/vch/ <br>
* <br>
* Module: G52GRP, University of Nottingham <br>
* <br>
* Group: gp09-exo <br>
* @author Lao Jingqi (jxl29u)
* @author Zhang Chao (cxz09u)
* @author Thomas Barton (txb18u)
* @author Ben Jenkinson (bxj08u)
* @author Alexander Jermstad (asj08u)
*
*/
/**
* This class abstract the methods of benchmark function.
*/
public abstract class Function {
/**
* return the concrete function's name
* @return the concrete function's name
*/
abstract String getName();
/**
* evaluate the binary representing value by applying the concrete function
* @param bit
* @return the value generated by the function
*/
abstract double evaluate(int[] bit);
/**
* evaluate integer value by applying the concrete function
* @param x
* @return the value generated by the function
*/
abstract double evaluateInteger(int x);
}