⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 art_doc.txt

📁 自适应共振神经网络可以实现自动学习与分类具有自适应的功能
💻 TXT
📖 第 1 页 / 共 5 页
字号:
 ------------------------------------------------------------------------- 
 GetSetOutType                                                             
      Given a pointer to a pattern set, returns the type of output 
      patterns in the set.                                         

      Arguments:                                                 
           set        - A pointer to a set of patterns of type setTYPE          
                                                                           
      Return Value:                                           
           NONE       - When there are no output patterns        
	   BINARY     - When the output is binary
	   ANALOG     - When the output is analog
           -1         - When the set was not initialized or NULL

     Syntax:
          int GetSetOutType(setPTR set)
 ------------------------------------------------------------------------- 
 InitNet                                                                    
      Given network parameters, initializes network values and allocates
      spaces
                                                                            
      Arguments:                                                    
           net        -  A pointer to a network of type netTYPE           
           net_type   -  ART or ARTMAP                                    
           componentA -  ART1 or FUZZYART                                 
                           For net_type ART, this is the type of ART       
                               network that is created.                    
                           For net_type ARTMAP, this the the ArtA network  
                               used for ArtMap input vectors.              
	   styleA     -  NONE or COMPLIMENT
	   componentB -  ART1, FUZZYART or NONE
			   For net-type ARTMAP, this the the ArtB network
			       used for ArtMap input vectors.
	   styleB     -  NONE or COMPLIMENT

      Return Value:
	   0          - Network successfully Initialized
	   1          - Invalid Network Type
	   2          - Invalid Art Component
	   3          - Invalid Style Type
	   4          - Invalid number or inputs or outputs (<=0)
	   5          - Network was already initialized
	   6          - Memory Allocation Failure (out of memory)
	   7          - When net NULL

      Syntax:
	   int  InitNet(netPTR net, int net_type,
			int componentA, int styleA, int num_inputs,
			int componentB, int styleB, int num_outputs)
 --------------------------------------------------------------------------
 InitSet
      Initialize values for a new pattern set

      Arguments:
	   set          - A pointer to a set of patterns of type setTYPE
	   num_inputs   - Number of input values
	   type_inputs  - ANALOG or BINARY
	   num_outputs  - Number of output values
	   type_outputs - ANALOG, BINARY or NONE

      Return Value:
	   0            - Set successfully Initialized
	   1            - Invalid Set Types
	   2            - Output type NONE with non-zero number of outputs
	   3            - Memory Allocation Failure (out of memory)
	   4            - When set is NULL

      Syntax:
	   int  InitSet(setPTR set, int num_inputs,  int type_inputs,
			int num_outputs, int type_outputs)
 --------------------------------------------------------------------------
 LoadNet
      Given a filename prefix, loads {filename}.net into a network
      structure setting appropriate initial values.

      Arguments:
	   net         -  A pointer to an initialized network of type netTYPE
	   file_prefix -  A pointer to a character string

      Return Value:
	   0            -  When successful
	   1            -  When file not found
	   2            -  Memory Allocation Failure (out of memory)
	   3            -  When net NULL

      Syntax:
	   int LoadNet(netPTR net, char *file_prefix)
 --------------------------------------------------------------------------
 LoadSet
      Given a pattern set pointer, and filename prefix, loads the pattern
       set from {filename}.pat    
                                                                           
      Arguments:                                                                
           set         - A pointer to a set of patterns of type setTYPE         
           file_prefix - A pointer to a character string                         

      Return Value:
	   0            -  When successful
           1            -  When file not found
           2            -  Memory Allocation Failure (out of memory)
           3            -  When set NULL
                                                                           
     Syntax:
          int LoadSet(setPTR set, char *file_prefix)
 --------------------------------------------------------------------------
 MakeSet                                                                   
      Given an uninitialized set pointer, the name of two files containing
      data and the size and type of input and output patterns, creates a 
      pattern set from the data files.  Each data file must have one number
      per line with no blank lines between patterns.
                                                                           
      Arguments:                                                  
           set          - A pointer to a set of patterns of type setTYPE  
           infile_name  - A pointer to a file of input values     
           num_inputs   - The number of inputs per pattern        
           type_inputs  - The type of inputs (ANALOG or BINARY)      
           outfile_name - A pointer to a file of output values       
	   num_outputs  - The number of outputs per pattern
           type_outputs - The type of outputs (ANALOG or BINARY)    
                                                                           
      Return errs:                                            
           0            - When successful                           
           1            - Invalid Set Types                          
           2            - Output type NONE with non-zero number of outputs  
           3            - Memory Allocation Failure (out of memory)     
           4            - Set is NULL                               
           5            - Input file not found                        
           6            - Output file not found                           
	   7            - ANALOG data given for BINARY set type
	   8            - ANALOG patter data not properly bounded [0 1]
           9            - Input or Output Vector has only zero values  
          10            - WARNING: Input or Output file ended prematurely

      Syntax:
           int MakeSet (setPTR set,char *infile_name, 
	               int num_inputs, int type_inputs,
	               char *outfile_name, int num_outputs, 
		       int type_outputs)
 ------------------------------------------------------------------------- 
 MergeSets                                                                 
      Given three pattern set prefixes, loads patterns using the first      
      two pattern sets files, merges them and saves them and saves them     
      using the third file prefix.                                          
                                                                           
      Arguments:                                                                
           file1_prefix - The first file to load from {file1_prefix}.pat
           file2_prefix - The second file to load from {file2_prefix}.pat
           save_prefix  - The file to save the merged set to {save_prefix}.pat

      Return errs:
            0           - When successful                                    
            1           - When input or output size is incompatible         
            2           - When file1 not found                                 
            3           - When file2 not found  
            4           - Memory Allocation Failure (out of memory)    

      Syntax:
	   int MergeSets (char *file1_prefix, char *file2_prefix,
			  char *save_prefix)
 -------------------------------------------------------------------------
 SaveNet                                                                   
      Given pointer to a network and a filename prefix, saves network 
      into {filename}.net       
                                                                           
      Arguments:                                                                
           net          -  A pointer to an initialized network of type netTYPE 
           file_prefix  -  A pointer to a character string           

      Return Value:
	   0            -  When successful
           1            -  When network not initialized, NULL or never trained
	   2            -  Error opening save file
                                               
      Syntax:                                                   
           int SaveNet(netPTR net, char *file_prefix)
 -------------------------------------------------------------------------- 
 SaveSet                                                                   
      Given a pointer to a pattern set, and filename prefix, saves the pattern
      set to {filename}.pat file                 
                                                                           
      Arguments:                                                                
           set          - A pointer to a set of patterns of type setTYPE   
           file_prefix  - A pointer to a character string                        

      Return Value:
           0            -  When successful
           1            -  When network not initialized       
	   2            -  Error opening save file

      Syntax:
           int  SaveSet(setPTR set, char *file_prefix)
 --------------------------------------------------------------------------
 SetArtBeta                                                                
      Given a pointer to a network, a network component and a      
      recoding rate sets the components recoding rate.             
                                                                           
      Arguments:                                                                
	   net       - A pointer to an initialized network of type netTYPE
           component - ARTA, ARTB, or ART                                  
           beta      - new recoding rate value between [0 1]                
                                                                           
      Return Value:                                                            
           0         - When successful                                      
           1         - When network type is incompatible                      
           2         - When vigilance is in incorrect range
	   3         - When network not initialized or NULL

      Syntax:
	   int SetArtBeta(netPTR net, int component, float beta)
 -------------------------------------------------------------------------
 SetArtVigil                                                               
      Given a pointer to a network, a network component and a      
      vigilance sets the components vigilance level.               
                                                                           
      Arguments:                                                                
           net       - A pointer to an initialized network of type netTYPE  
           component - ARTA, ARTB, or ART                                   
	   vigil     - new vigilance value between [0 1]
                                                                           
      Return Value:                                                            
           0         - When successful                                       
           1         - When network type is incompatible                     
           2         - When vigilance is in incorrect range
           3         - When network not initialized or NULL

      Syntax:
           int SetArtVigil(netPTR net, int component, float vigil)
 ------------------------------------------------------------------------- 
 SetBaseVigil
      Given a pointer to an ArtMap network, sets the base
      vigilance level of the ArtA network.                         
                                                                           
      Arguments:                                                                
           net        - A pointer to an initialized network of type netTYPE 
           base_vigil - New vigilance value between [0 1]                   
                                                                           
      Return Value:                                                            
	   0          - When successful
           1          - When network type is incompatible                      
           2          - When vigilance is in incorrect range                   
           3          - When network not initialized or NULL

      Syntax:
           int SetBaseVigil(netPTR net, float base_vigil)
 ------------------------------------------------------------------------- 
 SetMapVigil                                                               
      Given a pointer to an ArtMap network, sets the mapfield      
      vigilence level.                                             

      Arguments:
           net        - A pointer to an initialized network of type netTYPE 
           vigil      - New vigilence value between [0 1]                   
                                                                           
      Return Values:                                                            
           0          - When successful                                             
           1          - When network type is incompatible                           
           2          - When vigilence is in incorrect range                        
	   3          - When network not initialized or NULL
  
      Syntax:
           int SetMapVigil(netPTR net, float map_vigil)
 ------------------------------------------------------------------------- 
 ShowPat                                                                   
      Given a pointer to a network, a pointer to a pattern set, and a 
      pattern number, calculates network activations for that pattern 
      number in the pattern set.  Uses the current vigilance level.   
                                                                           
      Arguments:                                                            

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -