com.weighscore.neuro
Class ParameterHolder

public class ParameterHolder
The class for holding and working with parameters, which are defined as the descent class' public fields. It's methods are used to serialize neural network objects.
Version:
2.0
Author:
Fyodor Kravchenko
Method Detail

getParameterNames

public java.lang.String[] getParameterNames()
Returns an array of parameter names
Returns:
Array of strings containing the names of the parameters

getDoubleParameter

public double getDoubleParameter(java.lang.String parameterName)
Returns the value of the double parameter by name
Parameters:
parameterName - The name of the parameter
Returns:
The value of the parameter

getLongParameter

public long getLongParameter(java.lang.String parameterName)
Returns the value of the long parameter by name
Parameters:
parameterName - The name of the parameter
Returns:
The value of the parameter

getIntegerParameter

public int getIntegerParameter(java.lang.String parameterName)
Returns the value of the int parameter by name
Parameters:
parameterName - The name of the parameter
Returns:
The value of the parameter

getParameter

public java.lang.Object getParameter(java.lang.String parameterName)
Returns the value of the parameter by name, as object
Parameters:
parameterName - The name of the parameter
Returns:
The value of the parameter

getParameterAsString

public java.lang.String getParameterAsString(java.lang.String parameterName)
Returns the value of the parameter by name, as string
Parameters:
parameterName - The name of the parameter
Returns:
The value of the parameter

getParameterType

public java.lang.String getParameterType(java.lang.String parameterName)
Returns the java type of the named parameter, as string
Parameters:
parameterName - The name of the parameter
Returns:
The type of the parameter as string

setParameter

public void setParameter(java.lang.String parameterName,
                         java.lang.String parameter)
Sets the value of the named parameter
Parameters:
parameterName - The name of the parameter
parameter - The value of the parameter as string