neuronespack
Class FonctionTransfert
java.lang.Object
neuronespack.FonctionTransfert
- public class FonctionTransfert
- extends java.lang.Object
Method Summary |
static double |
calcDerivee(int type,
double x,
double[] val)
Calcul de la dérivée de la fonction de transition |
static double |
calcTransfert(int type,
double x,
double[] val)
Calcul de la fonction de transfert |
static int |
getNbParametre(int typeFonction)
Retourne nombre de paramètres selon fonction |
static double |
getRandom(double min,
double max)
Retourne un nombre aléatoire entre 2 bornes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
F_LINEAIRE
public static final int F_LINEAIRE
- See Also:
- Constant Field Values
F_SIGNE
public static final int F_SIGNE
- See Also:
- Constant Field Values
F_BIPOLAIRE
public static final int F_BIPOLAIRE
- See Also:
- Constant Field Values
F_LOGISTIQUE
public static final int F_LOGISTIQUE
- See Also:
- Constant Field Values
F_TANH
public static final int F_TANH
- See Also:
- Constant Field Values
FonctionTransfert
public FonctionTransfert()
calcTransfert
public static double calcTransfert(int type,
double x,
double[] val)
- Calcul de la fonction de transfert
- Parameters:
type
- int : Type de fonctionx
- double : Valeur (potentiel)val
- double[] : Tableau des paramètres de la fonction
- Returns:
- double : Valeur de retour
calcDerivee
public static double calcDerivee(int type,
double x,
double[] val)
- Calcul de la dérivée de la fonction de transition
- Parameters:
type
- int : Type de fonctionx
- double : Valeur (potentiel)val
- double[] : Tableau des paramètres de la fonction
- Returns:
- double : Valeur de retour
getNbParametre
public static int getNbParametre(int typeFonction)
- Retourne nombre de paramètres selon fonction
getRandom
public static double getRandom(double min,
double max)
- Retourne un nombre aléatoire entre 2 bornes