/** * Creates and returns a linear VFA object over this RBF feature database. * @param defaultWeightValue the default feature weight value to use for all features * @return a linear VFA object over this RBF feature database. */ public DenseLinearVFA generateVFA(double defaultWeightValue) { return new DenseLinearVFA(this, defaultWeightValue); }
/** * Creates and returns a linear VFA object over this Fourier basis feature database. * @param defaultWeightValue the default feature weight value to use for all features * @return a linear VFA object over this Fourier basis feature database. */ public DenseLinearVFA generateVFA(double defaultWeightValue) { return new DenseLinearVFA(this, defaultWeightValue); }
@Override public DenseLinearVFA copy() { DenseLinearVFA vfa = new DenseLinearVFA(this.stateFeatures, this.defaultWeight); vfa.actionOffset = new HashMap<Action, Integer>(this.actionOffset); if(this.stateWeights != null) { vfa.stateWeights = new double[this.stateWeights.length]; for(int i = 0; i < this.stateWeights.length; i++) { vfa.stateWeights[i] = this.stateWeights[i]; } } if(this.stateActionWeights != null) { vfa.stateActionWeights = new double[this.stateActionWeights.length]; for(int i = 0; i < this.stateActionWeights.length; i++) { vfa.stateActionWeights[i] = this.stateActionWeights[i]; } } return vfa; } }