Last change
on this file since 126 was 126, checked in by Aron Hammond, 6 years ago |
Added function to calculate opposition to MultiLateralAnalysis.java
Moved code to add RLBOA listeners to RLBOAUtils is misc package
Added input for strategyParameters to SessionPanel (gui)
!! close SessionInfo after tournament; this caused /tmp/ to fill up with GeniusData files
Our own package:
- Added opponents and strategies that are mentioned in the report
- Change class hierarchy, agents can now extend from RLBOAagentBilateral to inherit RL functionality.
- States extend from AbstractState
|
File size:
453 bytes
|
Line | |
---|
1 | package agents.bayesianopponentmodel;
|
---|
2 |
|
---|
3 | import genius.core.Domain;
|
---|
4 |
|
---|
5 | public class WeightHypothesis2 extends Hypothesis {
|
---|
6 | double fWeight;
|
---|
7 | // double fAprioriProbability;
|
---|
8 | public WeightHypothesis2 (Domain pDomain) {
|
---|
9 |
|
---|
10 | }
|
---|
11 | public void setWeight( double value) {
|
---|
12 | fWeight = value;
|
---|
13 | }
|
---|
14 | public double getWeight() {
|
---|
15 | return fWeight;
|
---|
16 | }
|
---|
17 | public String toString() {
|
---|
18 | String lResult = "";
|
---|
19 | lResult = String.format("%1.2f", fWeight) +";";
|
---|
20 | return lResult;
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.