Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/util/RandomChoiceChooser.java @ 10187

Last change on this file since 10187 was 6152, checked in by bfarka, 13 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
8package 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
24public 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.