|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.nengo.math.impl.CompositeApproximator
public class CompositeApproximator
A LinearApproximator that approximates multi-dimensional functions as sums of lower-dimensional functions. Each lower-dimensional function is approximated by a component approximator, which is provided in the constructor. The resulting approximation is the sum of approximations produced by each component.
CompositeApproximator is similar to the simpler IndependentDimensionApproximator, but more general because dimensions can be handled either independently or in arbitrary groups.
CompositeApproximator is useful for low-dimensionally non-linear functions of high-dimensional vectors, eg x1*x2 + x3*x4 - x5*x6.
It is also useful for creating accurate, high-dimensional ensembles of neurons with a little overlap between dimensions.
TODO: should LinearApproximator have getDimension()? would be possible to get rid of 2nd constructor arg then TODO: test
| Constructor Summary | |
|---|---|
CompositeApproximator(LinearApproximator[] components,
int[][] dimensions)
|
|
| Method Summary | |
|---|---|
LinearApproximator |
clone()
|
float[] |
findCoefficients(Function target)
Note: more information is needed than the arguments provide (for example the functions that are to be combined to estimate the target). |
float[][] |
getEvalPoints()
|
float[][] |
getValues()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeApproximator(LinearApproximator[] components,
int[][] dimensions)
| Method Detail |
|---|
public float[][] getEvalPoints()
getEvalPoints in interface LinearApproximatorLinearApproximator.getEvalPoints()public float[][] getValues()
getValues in interface LinearApproximatorLinearApproximator.getValues()public float[] findCoefficients(Function target)
LinearApproximator
findCoefficients in interface LinearApproximatortarget - Function to approximate
LinearApproximator.findCoefficients(ca.nengo.math.Function)
public LinearApproximator clone()
throws java.lang.CloneNotSupportedException
clone in interface LinearApproximatorclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||