All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.meliorbis.numerics.fixedpoint.FixedPointStrategy Maven / Gradle / Ivy

Go to download

A library for working with large multi-dimensional arrays and the functions they represent

There is a newer version: 1.2
Show newest version
/**
 * 
 */
package com.meliorbis.numerics.fixedpoint;


/**
 * Implements a mechanism for successively adjusting the configuration of a model with no aggregate risk
 * until the solution found reproduces the aggregates assumed by individual agents
 * 
 * @param  The state type to be used
 * 
 * @author Tobias Grasl
 */
public interface FixedPointStrategy
{
	/**
	 * Calculate the accuraccy of the match between assumed and implied outcomes, and adjusts the assumed values
	 * according to this strategy, ready for the next attempt.
	 * 
	 * @param state_ The state for which the calculation should be performed
	 * 
	 * @return The accuracy of the match between inputs and outputs
	 * 
	 * @throws FPStrategyException If there is a problem performing the calculation
	 */
	double calculateCriterionAndAdjust(T state_) throws FPStrategyException;

	/**
	 * @param delegate The delegate to be used to perform the actual calculations
	 */
	public abstract void setDelegate(FixedPointValueDelegate delegate);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy