neuronespack
Class FonctionTransfert

java.lang.Object
  extended byneuronespack.FonctionTransfert

public class FonctionTransfert
extends java.lang.Object

Title: Fonctions de transfert

Description: Gestion des fonctions de transfert.


Field Summary
static int F_BIPOLAIRE
           
static int F_LINEAIRE
           
static int F_LOGISTIQUE
           
static int F_SIGNE
           
static int F_TANH
           
 
Constructor Summary
FonctionTransfert()
           
 
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
 

Field Detail

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
Constructor Detail

FonctionTransfert

public FonctionTransfert()
Method Detail

calcTransfert

public static double calcTransfert(int type,
                                   double x,
                                   double[] val)
Calcul de la fonction de transfert

Parameters:
type - int : Type de fonction
x - 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 fonction
x - 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