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

📄 ann.mdl

📁 The adaptive Neural Network Library is a collection of blocks that implement several Adaptive Neural
💻 MDL
📖 第 1 页 / 共 5 页
字号:
Library {
  Name			  "ann"
  Version		  3.00
  BlockDataTips		  off
  BlockParametersDataTip  off
  BlockAttributesDataTip  off
  BlockPortWidthsDataTip  off
  BlockDescriptionStringDataTip	off
  BlockMaskParametersDataTip off
  ToolBar		  off
  StatusBar		  off
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Mon May 01 18:03:26 2000"
  Creator		  "CAMPA"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "campa"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Fri Jun 27 18:28:49 2003"
  ModelVersionFormat	  "3.%<AutoIncrement:4>"
  ConfigurationManager	  "none"
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "ann"
    Location		    [79, 80, 575, 610]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "automatic"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    AutoZoom		    on
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "ADALINE"
      Ports		      [3, 2, 0, 0, 0]
      Position		      [30, 49, 100, 131]
      BackgroundColor	      "gray"
      ShowPortLabels	      on
      MaskType		      "Adaline NN"
      MaskDescription	      "  Self Adaptive Discrete Time Linear Neural Net"
"work\n"
      MaskHelp		      "<p>\n  This Neural Network is used to adaptivel"
"y approximate\n  an affine scalar field y=W*x+k, with the input vector \n  x "
"being a function of time.\n</p>\n<p>\n  The first input is x. <br>\n  The sec"
"ond input is the error signal (i.e. e=y-ys). <br>\n  The third input is the l"
"earning enable:\n       with LE=1 the learning is enabled, \n       with LE=0"
" the learning is disabled.\n</p>\n<p>\n  The first output is the learned func"
"tion ys(x). <br>\n  The second output is the states vector. <br>\n  Since thi"
"s Adaline implementation is single output,\n  i.e. ys(x) is a scalar, the wei"
"ght matrix W is actually\n  a row vector of size Ni+1 where Ni is the dimensi"
"on \n  (the number of elements) of x.\n</p>\n<p>\n  The first parameter in th"
"e mask is the learning rate.\n</p>\n<p>\n  The second parameter in the mask i"
"s the stabilizing factor.\n</p>\n<p>\n  The initial condition could be either"
" a vector of Ni+1 \n  parameters or a scalar. In the latter case, the scalar"
"\n  is repeated Ni+1 times to form the initial condition vector.\n</p>\n<p>\n"
"  OUTPUT EQUATION: <br>\n  At any given time t, if x(t) is the input vector, "
"\n  then the output of the neural network is : <br>\n  ys=0.1*Wo+Ws*x(t) <br>"
"\n  where Wo and Ws are respectively the first \n  element and the rest of th"
"e state vector. <br>\n<br>\n  STATE EQUATION (Learning Algorithm): <br>\n  Th"
"e state vector W(t) is updated according to the gradient rule:\n  W(t+T)=W(t)"
"-eta*(dys/dW)*e(t)-eta*gamma*W(t) <br>\n  where eta is the learning rate, dys"
"/dW is a jacobian matrix,\n  gamma is the stabilizing factor (sigma modificat"
"ion),\n  e(t)=y(t)-ys(t) is the error vector at time t, and T is the sampling"
" time.\n</p>\n<p>\n  The final mask parameter is the sampling time of the blo"
"ck, T.\n</p>\n<p>\n  For further reference see some papers on the ADALINE NN."
"<br>\n  This block is implemented in Simulink.\n</p>\n<p>\n  Giampiero Campa,"
" June 20 2003\n</p>"
      MaskPromptString	      "Learning Rate|Stabilizing Factor|Initial Condit"
"ion|Sample Time"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskVariables	      "eta=@1;gam=@2;W=@3;T=@4;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.001|1e-6|0|0.05"
      System {
	Name			"ADALINE"
	Location		[136, 93, 831, 400]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Inport
	  Name			  "xn"
	  Position		  [50, 192, 80, 208]
	  Port			  "1"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "e"
	  Position		  [160, 168, 190, 182]
	  Port			  "2"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "LE"
	  Position		  [160, 253, 190, 267]
	  Port			  "3"
	  PortWidth		  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [55, 69, 85, 91]
	  ShowName		  off
	  Value			  "1e-1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [620, 220, 655, 240]
	  Orientation		  "left"
	  ShowName		  off
	  Value			  "gam"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Dot Product"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [575, 106, 605, 139]
	  SourceBlock		  "simulink3/Math/Dot Product"
	  SourceType		  "Dot Product"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux8"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [125, 22, 130, 258]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [3, 1, 0, 0, 0]
	  Position		  [230, 159, 260, 191]
	  ShowName		  off
	  Inputs		  "3"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [445, 165, 465, 185]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [305, 165, 325, 185]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay"
	  Position		  [490, 157, 510, 193]
	  ShowName		  off
	  X0			  "W"
	  SampleTime		  "T"
	}
	Block {
	  BlockType		  Gain
	  Name			  "eta"
	  Position		  [370, 152, 420, 198]
	  ShowName		  off
	  Gain			  "eta"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Product
	  Name			  "mod"
	  Ports			  [3, 1, 0, 0, 0]
	  Position		  [370, 214, 400, 246]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  Inputs		  "3"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Outport
	  Name			  "ys"
	  Position		  [630, 118, 660, 132]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "X"
	  Position		  [630, 168, 660, 182]
	  Port			  "2"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "[]"
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "mod"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "mod"
	  SrcPort		  1
	  Points		  [-50, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "eta"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "LE"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    Points		    [240, 0; 0, -20]
	    DstBlock		    "mod"
	    DstPort		    3
	  }
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    3
	  }
	}
	Line {
	  SrcBlock		  "Mux8"
	  SrcPort		  1
	  Points		  [0, 0; 80, 0]
	  Branch {
	    Points		    [0, -25]
	    DstBlock		    "Dot Product"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Dot Product"
	  SrcPort		  1
	  DstBlock		  "ys"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "e"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Unit Delay"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Dot Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      Points		      [0, 45; -80, 0]
	      Branch {
		DstBlock		"mod"
		DstPort			1

⌨️ 快捷键说明

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