Last change
on this file since 12700 was
6152,
checked in by bfarka, 14 years ago
|
added ecj and custom statistics to communicate with the okb services #1441
|
File size:
617 bytes
|
Line | |
---|
1 | /* |
---|
2 | Copyright 2006 by Sean Luke |
---|
3 | Licensed under the Academic Free License version 3.0 |
---|
4 | See the file "LICENSE" for more information |
---|
5 | */ |
---|
6 | |
---|
7 | |
---|
8 | package ec.util; |
---|
9 | |
---|
10 | /* |
---|
11 | * RandomChoiceChooser.java |
---|
12 | * |
---|
13 | * Created: Tue Feb 8 15:04:39 2000 |
---|
14 | * By: Sean Luke |
---|
15 | */ |
---|
16 | |
---|
17 | /** |
---|
18 | * Used by RandomChoice to pick objects by probability from a distribution. |
---|
19 | * |
---|
20 | * @author Sean Luke |
---|
21 | * @version 1.0 |
---|
22 | */ |
---|
23 | |
---|
24 | public interface RandomChoiceChooser |
---|
25 | { |
---|
26 | /** Returns obj's probability */ |
---|
27 | public float getProbability(final Object obj); |
---|
28 | /** Sets obj's probability */ |
---|
29 | public void setProbability(final Object obj, final float prob); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.