source: src/main/java/agents/anac/y2015/agentBuyogV2/LearningFunction.java@ 345

Last change on this file since 345 was 1, checked in by Wouter Pasman, 6 years ago

Initial import : Genius 9.0.0

File size: 471 bytes
Line 
1package agents.anac.y2015.agentBuyogV2;
2
3import agents.anac.y2015.agentBuyogV2.flanagan.analysis.RegressionFunction;
4
5
6public 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.