#ifndef _FFNet_Pattern_Activation_h_
#define _FFNet_Pattern_Activation_h_
/* David Weenink, 27 aug 1996 */

#ifndef _FFNet_h_
	#include "FFNet.h"
#endif
#ifndef _Pattern_h_
	#include "Pattern.h"
#endif
#ifndef _Activation_h_	
	#include "Activation.h"
#endif
#ifndef _Minimizers_h_	
	#include "Minimizers.h"
#endif

int FFNet_Pattern_Activation_learnPR (FFNet me, Pattern p, Activation a, long maxNumOfEpochs,
    double tolerance, Any parameters, int costFunctionType);
/* Conjugate Gradient minimization */
/*	learn the combination of the input patterns and the activations */
/*  costFunctionType == 2 minimum cross entropy */
/*                      1 minimum squared error */

int FFNet_Pattern_Activation_learnFP (FFNet me, Pattern p, Activation a, long maxNumOfEpochs,
    double tolerance, Any parameters, int costFunctionType);

int FFNet_Pattern_Activation_learnSD (FFNet me, Pattern p, Activation a, long maxNumOfEpochs,
    double tolerance, Any parameters, int costFunctionType);
/* Steepest Descent minimization */

int FFNet_Pattern_Activation_learnSM (FFNet me, Pattern p, Activation a, long maxNumOfEpochs,
    double tolerance, Any parameters, int costFunctionType);
    
Activation FFNet_Pattern_to_Activation (FFNet me, Pattern p, long layer);
/* Calculate the activations at a layer */
/* if (layer<1 || layer > my nLayers) layer = my nLayers; */

#endif /* _FFNet_Pattern_Activation_h_ */
