Last change
on this file was 1, checked in by Wouter Pasman, 6 years ago |
Initial import : Genius 9.0.0
|
File size:
471 bytes
|
Line | |
---|
1 | package agents.anac.y2015.agentBuyogV2;
|
---|
2 |
|
---|
3 | import agents.anac.y2015.agentBuyogV2.flanagan.analysis.RegressionFunction;
|
---|
4 |
|
---|
5 |
|
---|
6 | public class LearningFunction implements RegressionFunction{
|
---|
7 |
|
---|
8 | private double y, initialUtility;
|
---|
9 |
|
---|
10 | public LearningFunction(double initialUtility){
|
---|
11 | this.initialUtility = initialUtility;
|
---|
12 | }
|
---|
13 |
|
---|
14 | @Override
|
---|
15 | public double function(double[] param, double[] x) {
|
---|
16 | y = initialUtility + Math.pow(Math.E, param[0])*Math.pow(x[0], param[1]);
|
---|
17 | return y;
|
---|
18 | }
|
---|
19 |
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.