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

📄 frmhop.frm

📁 用神经元模拟磁旋
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form FrmHop 
   BackColor       =   &H8000000A&
   Caption         =   "Hop"
   ClientHeight    =   8115
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10515
   LinkTopic       =   "Form1"
   ScaleHeight     =   8115
   ScaleWidth      =   10515
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text5 
      Alignment       =   2  'Center
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   11.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   285
      Left            =   5280
      TabIndex        =   27
      Text            =   "100"
      Top             =   1920
      Width           =   615
   End
   Begin VB.PictureBox Picture7 
      Height          =   2175
      Left            =   7440
      ScaleHeight     =   2115
      ScaleWidth      =   2595
      TabIndex        =   20
      Top             =   5040
      Width           =   2655
      Begin VB.PictureBox Picture8 
         Height          =   375
         Left            =   0
         ScaleHeight     =   315
         ScaleWidth      =   2355
         TabIndex        =   23
         Top             =   0
         Visible         =   0   'False
         Width           =   2415
         Begin VB.TextBox Text4 
            Height          =   300
            Index           =   0
            Left            =   0
            MaxLength       =   2
            TabIndex        =   24
            Text            =   "1"
            Top             =   0
            Visible         =   0   'False
            Width           =   300
         End
      End
      Begin VB.HScrollBar HScroll4 
         Height          =   255
         Left            =   0
         TabIndex        =   22
         Top             =   1920
         Visible         =   0   'False
         Width           =   2415
      End
      Begin VB.VScrollBar VScroll4 
         Height          =   2175
         Left            =   2400
         TabIndex        =   21
         Top             =   0
         Visible         =   0   'False
         Width           =   255
      End
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   11.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   4920
      TabIndex        =   19
      Top             =   6360
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "学习记忆过程"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   11.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1215
      Left            =   4800
      TabIndex        =   18
      Top             =   3600
      Width           =   1575
   End
   Begin VB.PictureBox Picture5 
      Height          =   2175
      Left            =   7440
      ScaleHeight     =   2115
      ScaleWidth      =   2595
      TabIndex        =   12
      Top             =   1320
      Width           =   2655
      Begin VB.VScrollBar VScroll3 
         Height          =   2175
         Left            =   2400
         TabIndex        =   15
         Top             =   0
         Width           =   255
      End
      Begin VB.HScrollBar HScroll3 
         Height          =   255
         Left            =   0
         TabIndex        =   14
         Top             =   1920
         Width           =   2415
      End
      Begin VB.PictureBox Picture6 
         Height          =   375
         Left            =   0
         ScaleHeight     =   315
         ScaleWidth      =   2355
         TabIndex        =   13
         Top             =   0
         Width           =   2415
         Begin VB.TextBox Text3 
            Height          =   300
            Index           =   0
            Left            =   0
            MaxLength       =   2
            TabIndex        =   26
            Text            =   "1"
            Top             =   0
            Visible         =   0   'False
            Width           =   300
         End
      End
   End
   Begin VB.PictureBox Picture3 
      Height          =   2175
      Left            =   360
      ScaleHeight     =   2115
      ScaleWidth      =   2595
      TabIndex        =   4
      Top             =   5040
      Width           =   2655
      Begin VB.HScrollBar HScroll2 
         Height          =   255
         Left            =   -120
         TabIndex        =   7
         Top             =   1920
         Width           =   2535
      End
      Begin VB.VScrollBar VScroll2 
         Height          =   2175
         Left            =   2400
         TabIndex        =   6
         Top             =   0
         Width           =   255
      End
      Begin VB.PictureBox Picture4 
         Height          =   1935
         Left            =   0
         ScaleHeight     =   1875
         ScaleWidth      =   2355
         TabIndex        =   5
         Top             =   0
         Width           =   2415
         Begin VB.TextBox Text2 
            Height          =   300
            Index           =   0
            Left            =   0
            MaxLength       =   2
            TabIndex        =   17
            Text            =   "1"
            Top             =   0
            Visible         =   0   'False
            Width           =   300
         End
      End
   End
   Begin VB.PictureBox Picture1 
      Height          =   2175
      Left            =   360
      ScaleHeight     =   2115
      ScaleWidth      =   2595
      TabIndex        =   0
      Top             =   1320
      Width           =   2655
      Begin VB.VScrollBar VScroll1 
         Height          =   2175
         Left            =   2400
         TabIndex        =   3
         Top             =   0
         Width           =   255
      End
      Begin VB.HScrollBar HScroll1 
         Height          =   255
         Left            =   0
         TabIndex        =   2
         Top             =   1920
         Width           =   2415
      End
      Begin VB.PictureBox Picture2 
         Height          =   1935
         Left            =   0
         ScaleHeight     =   1875
         ScaleWidth      =   2355
         TabIndex        =   1
         Top             =   0
         Width           =   2415
         Begin VB.TextBox Text1 
            Height          =   300
            Index           =   0
            Left            =   0
            MaxLength       =   2
            TabIndex        =   16
            Text            =   "1"
            Top             =   0
            Visible         =   0   'False
            Width           =   300
         End
      End
   End
   Begin VB.Label D_Sample 
      Height          =   255
      Left            =   480
      TabIndex        =   34
      Top             =   3960
      Width           =   615
   End
   Begin VB.Label E_Sample 
      Height          =   255
      Left            =   480
      TabIndex        =   33
      Top             =   3600
      Width           =   615
   End
   Begin VB.Label D_End 
      Height          =   255
      Left            =   7560
      TabIndex        =   32
      Top             =   7680
      Width           =   615
   End
   Begin VB.Label E_End 
      Height          =   255
      Left            =   7560
      TabIndex        =   31
      Top             =   7320
      Width           =   615
   End
   Begin VB.Label D_Start 
      Height          =   255
      Left            =   7560
      TabIndex        =   30
      Top             =   3960
      Width           =   615
   End
   Begin VB.Label E_Start 
      Height          =   255
      Left            =   7560
      TabIndex        =   29
      Top             =   3600
      Width           =   615
   End
   Begin VB.Label Label6 
      Caption         =   "学习次数"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3960
      TabIndex        =   28
      Top             =   1920
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "最终状态"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   8040
      TabIndex        =   25
      Top             =   4680
      Width           =   1215
   End
   Begin VB.Label Label4 
      Caption         =   "更新次数"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   960
      TabIndex        =   11
      Top             =   4680
      Width           =   1215
   End
   Begin VB.Label Label3 
      Caption         =   "初始状态"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   8280
      TabIndex        =   10
      Top             =   1080
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "学习的样本"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   840
      TabIndex        =   9
      Top             =   960
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "Hop算法演示"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   36
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   855
      Left            =   2880
      TabIndex        =   8
      Top             =   240
      Width           =   4575
   End
End
Attribute VB_Name = "FrmHop"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
Dim i, j As Integer
Dim temp() As Integer
ReDim temp(NN)
N = Val(Text5.Text)
Call Initial
Call Read_StudyMode
Call StudyMode
E_Sample.Caption = "E="
For i = 1 To PP
  For j = 1 To NN
     temp(j) = A(i, j)
  Next j
  E_Sample.Caption = E_Sample.Caption & Energy(temp) & ","
  D_Start.Caption = "D=" & HanMin(temp, b)
  D_End.Caption = "D=" & HanMin(temp, b)
Next i
Call Read_RememberMode
E_Start.Caption = "E=" & Energy(b)
D_Start.Caption = "D="

⌨️ 快捷键说明

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