亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? map_form.frm

?? mif,mid文件的讀寫 和一些人工智能模型
?? FRM
?? 第 1 頁 / 共 5 頁
字號:
End Sub

Private Sub CFM_Click()

   SetHourglass
    
   'THIS PROGRAM IS FOR Applied General C-F MODEL PROCEDURE
   'ORIGINATED BY : CHEN YONGLIANG
   'DATE:           OCTOBER 10,2000
    
    Dim xmin As Double, xmax As Double, ymin As Double, xo As Double, yo As Double, ymax As Double, xx As Double, yy As Double, yg As Double
    Dim dx As Double, dy As Double
    Dim m As Integer, np As Integer, k As Integer, l As Integer
    Dim grid_no  As Integer, i As Integer, ii As Integer, ij As Integer, j As Integer, deposit_num As Integer, ixx As Integer, iyy As Integer
    Dim grid_co() As Double, deposit_co(1000, 2) As Double, evidence_co(10000, 2) As Double, joint_co(100) As Double
    Dim grid_dep() As Integer, point_num(1000) As Integer
    Dim cf() As Double, believe() As Double
    Dim filename As String * 80, filename1 As String * 80, filename2 As String * 80
    Dim region_num As Integer, kk As Integer, i1 As Integer, kkks As Integer, iii As Integer, jjj As Integer
    Dim kks As Integer, kkd As Integer, kke1 As Integer, kke2 As Integer, kke As Integer, kkef As Integer
    Dim xs As Double, xx1 As Double, xx2 As Double, xx3 As Double, yy1 As Double, yy2 As Double, yy3 As Double
    Dim ccc As Double, py As Double, pyz As Double, pyzf As Double, scf As Double, scf1 As Double, mincf As Double
    Dim file() As String * 80
    
    On Error GoTo errprint
    
   'The number of map layers
    m = Val(Text1.Text)
    
   'The number of scanning lines
    k = Val(Text2.Text)
    
    ReDim file(2 * m + 1)
    
    'Open *.txt file and input map layer file names
    filename = Text3.Text
    Open filename For Input As #1
    For i = 1 To 2 * m + 1
      Input #1, file(i)
    Next i
    Close #1
    
   'Open the *.mif file and input the data of deposit map layer
    filename = file(1)
    Open filename For Input As #1
    Call InputDep(deposit_co, deposit_num, 1, xmin, ymin, xmax, ymax)
    Close #1
  
   'The ratio between the width and height of the map area
    ccc = (xmax - xmin) / (ymax - ymin)
    
   'The number of columns
    l = CInt(k * ccc)

    dx = (xmax - xmin) / CDbl(l)
    dy = (ymax - ymin) / CDbl(k)
    
    ReDim grid_co(k * l, 12), grid_dep(k * l, m + 1), believe(k * l), cf(m, 3)
 
   'Generate the uniform grid cells
    For i = 1 To k
      For j = 1 To l
      
        grid_no = (i - 1) * l + j
        xx = xmin + j * dx - dx / 2#
        yy = ymin + i * dy - dy / 2#
        xx1 = xx - dx / 2#
        yy1 = yy - dy / 2#
        xx2 = xx + dx / 2#
        yy2 = yy + dy / 2#
        
       'The X_Y coordinates of the center of the cell
        grid_co(grid_no, 1) = xx
        grid_co(grid_no, 2) = yy
        
       'The four boundaries of the cell
        grid_co(grid_no, 3) = xx1
        grid_co(grid_no, 4) = yy1
        grid_co(grid_no, 5) = xx2
        grid_co(grid_no, 6) = yy1
        grid_co(grid_no, 7) = xx2
        grid_co(grid_no, 8) = yy2
        grid_co(grid_no, 9) = xx1
        grid_co(grid_no, 10) = yy2
        grid_co(grid_no, 11) = xx1
        grid_co(grid_no, 12) = yy1
        
      Next j
    Next i
  
   'Determining grid cells whether containning a deposit
    For i = 1 To deposit_num
      xx = deposit_co(i, 1)
      yy = deposit_co(i, 2)
      ixx = Fix((xx - xmin) / dx) + 1
      iyy = Fix((yy - ymin) / dy) + 1
      ii = (iyy - 1) * l + ixx
      grid_dep(ii, 1) = 1
    Next i
   
   'Initialize the grid_dep
    For i = 1 To k * l
      For j = 1 To m
        grid_dep(i, j + 1) = -1
      Next j
    Next i
 
   'Determining map patterns whether exist in grid cells
    For j = 1 To m
    
     'Open the map pattern file and input the data
      filename = file(2 * j)
      Open filename For Input As #2
      Call InputEvi(evidence_co, point_num, region_num, 2)
       
      For ij = 1 To k
         yg = grid_co((ij - 1) * l + 1, 2)
         kk = 0
         For i1 = 1 To region_num
            kkks = 0
            For ii = kk + 1 To kk + point_num(i1) - 1
              xx1 = evidence_co(ii, 1)
              yy1 = evidence_co(ii, 2)
              xx2 = evidence_co(ii + 1, 1)
              yy2 = evidence_co(ii + 1, 2)
              If ii < kk + point_num(i1) - 1 Then
                xx3 = evidence_co(ii + 2, 1)
                yy3 = evidence_co(ii + 2, 2)
              ElseIf ii = kk + point_num(i1) - 1 Then
                xx3 = evidence_co(kk + 2, 1)
                yy3 = evidence_co(kk + 2, 2)
              End If
              
             'Determining the intersecting points of the scanning line and the polygon boundaries
              If yy1 <> yy2 Then
                If (yg > yy1 And yg < yy2) Or (yg < yy1 And yg > yy2) Then
                  kkks = kkks + 1
                  joint_co(kkks) = (xx2 - xx1) * (yg - yy1) / (yy2 - yy1) + xx1
                ElseIf yg = yy2 Then
                  If (yy3 > yg And yy1 < yg) Or (yy3 < yg And yy1 > yg) Then
                    kkks = kkks + 1
                    joint_co(kkks) = xx2
                  ElseIf yy3 > yg And yy1 > yg Then
                    kkks = kkks + 2
                    joint_co(kkks - 1) = xx2
                    joint_co(kkks) = xx2
                  ElseIf yy3 < yg And yy1 < yg Then
                    ixx = Fix((xx2 - xmin) / dx) + 1
                    iyy = Fix((yy2 - ymin) / dy) + 1
                    grid_dep((iyy - 1) * l + ixx) = 1
                  End If
                End If
              ElseIf yy1 = yg And yy2 = yg Then
                kkks = kkks + 2
                joint_co(kkks - 1) = xx1
                joint_co(kkks) = xx2
              End If
            Next ii
       
           'Sort the X_coordinates
            For iii = 1 To kkks - 1
              For jjj = iii + 1 To kkks
                If joint_co(iii) > joint_co(jjj) Then
                   xs = joint_co(iii)
                   joint_co(iii) = joint_co(jjj)
                   joint_co(jjj) = xs
                End If
              Next jjj
            Next iii
            
           'Determining the grid_dep() values
            kks = kkks \ 2
            For iii = 1 To kks
              For jjj = 1 To l
                If grid_co((ij - 1) * l + jjj, 1) >= joint_co(2 * iii - 1) And grid_co((ij - 1) * l + jjj, 1) <= joint_co(2 * iii) Then
                  grid_dep((ij - 1) * l + jjj, j + 1) = 1
                End If
              Next jjj
            Next iii
            kk = kk + point_num(i1)
         Next i1
      Next ij
      Close #2
      
     'Open the unmapped region file and input the data
      filename = file(2 * j + 1)
      Open filename For Input As #2
      Call InputEvi(evidence_co, point_num, region_num, 2)
       
      For ij = 1 To k
         yg = grid_co((ij - 1) * l + 1, 2)
         kk = 0
         For i1 = 1 To region_num
            kkks = 0
            For ii = kk + 1 To kk + point_num(i1) - 1
              xx1 = evidence_co(ii, 1)
              yy1 = evidence_co(ii, 2)
              xx2 = evidence_co(ii + 1, 1)
              yy2 = evidence_co(ii + 1, 2)
              If ii < kk + point_num(i1) - 1 Then
                xx3 = evidence_co(ii + 2, 1)
                yy3 = evidence_co(ii + 2, 2)
              ElseIf ii = kk + point_num(i1) - 1 Then
                xx3 = evidence_co(kk + 2, 1)
                yy3 = evidence_co(kk + 2, 2)
              End If
              
             'Determining the intersecting points of the scanning line and the polygon boundaries
              If yy1 <> yy2 Then
                If (yg > yy1 And yg < yy2) Or (yg < yy1 And yg > yy2) Then
                  kkks = kkks + 1
                  joint_co(kkks) = (xx2 - xx1) * (yg - yy1) / (yy2 - yy1) + xx1
                ElseIf yg = yy2 Then
                  If (yy3 > yg And yy1 < yg) Or (yy3 < yg And yy1 > yg) Then
                    kkks = kkks + 1
                    joint_co(kkks) = xx2
                  ElseIf yy3 > yg And yy1 > yg Then
                    kkks = kkks + 2
                    joint_co(kkks - 1) = xx2
                    joint_co(kkks) = xx2
                  ElseIf yy3 < yg And yy1 < yg Then
                    ixx = Fix((xx2 - xmin) / dx) + 1
                    iyy = Fix((yy2 - ymin) / dy) + 1
                    grid_dep((iyy - 1) * l + ixx) = 0
                  End If
                End If
              ElseIf yy1 = yg And yy2 = yg Then
                kkks = kkks + 2
                joint_co(kkks - 1) = xx1
                joint_co(kkks) = xx2
              End If
            Next ii
       
           'Sort the X_coordinates
            For iii = 1 To kkks - 1
              For jjj = iii + 1 To kkks
                If joint_co(iii) > joint_co(jjj) Then
                   xs = joint_co(iii)
                   joint_co(iii) = joint_co(jjj)
                   joint_co(jjj) = xs
                End If
              Next jjj
            Next iii
            
           'Determining the grid_dep() values
            kks = kkks \ 2
            For iii = 1 To kks
              For jjj = 1 To l
                If grid_co((ij - 1) * l + jjj, 1) >= joint_co(2 * iii - 1) And grid_co((ij - 1) * l + jjj, 1) <= joint_co(2 * iii) Then
                  grid_dep((ij - 1) * l + jjj, j + 1) = 0
                End If
              Next jjj
            Next iii
            kk = kk + point_num(i1)
         Next i1
      Next ij
      Close #2
    Next j
     

  'Calculating the certainty factors for all map patterns
   kkd = 0
   For i = 1 To k * l
     If grid_dep(i, 1) = 1 Then
       kkd = kkd + 1
     End If
   Next i
   For j = 1 To m
       kke1 = 0
       kke2 = 0
       kke = 0
       kkef = 0
       For i = 1 To k * l
          If grid_dep(i, j + 1) = 1 Then
             kke1 = kke1 + grid_dep(i, 1) * grid_dep(i, j + 1)
             kke = kke + 1
          ElseIf grid_dep(i, j + 1) = -1 Then
             kke2 = kke2 + grid_dep(i, 1) * (-grid_dep(i, j + 1))
             kkef = kkef + 1
          End If
       Next i
       py = CDbl(kkd) / CDbl(k * l)
       pyz = CDbl(kke1) / CDbl(kke)
       pyzf = CDbl(kke2) / CDbl(kkef)
       If pyz >= py Then
          cf(j, 1) = (pyz - py) / ((1 - py) * pyz)
       Else
          cf(j, 1) = (pyz - py) / (py * (1 - pyz))
       End If
       If pyzf >= py Then
          cf(j, 2) = (pyzf - py) / ((1 - py) * pyzf)
       Else
          cf(j, 2) = (pyzf - py) / (py * (1 - pyzf))
       End If
   Next j
   
   'Output the certainty factors of all map patterns
    Open "c:\cfmweights.txt" For Output As #20
    Print #20, "The two estimated certainty factors:"
    For j = 1 To m
       Print #20, cf(j, 1), "  ", cf(j, 2)
    Next j
    Close #20
   
  'Synthesizing the certainty factors for all grids
   If m >= 2 Then
     For i = 1 To k * l
       If grid_dep(i, 2) = 1 And grid_dep(i, 3) = 1 Then
         If cf(1, 1) >= 0 And cf(2, 1) >= 0 Then
           scf = cf(1, 1) + cf(2, 1) - cf(1, 1) * cf(2, 1)
         ElseIf (cf(1, 1) > 0 And cf(2, 1) < 0) Or (cf(1, 1) < 0 And cf(2, 1) > 0) Then
           If Abs(cf(1, 1)) <= Abs(cf(2, 1)) Then
              mincf = Abs(cf(1, 1))
           ElseIf Abs(cf(1, 1)) > Abs(cf(2, 1)) Then
              mincf = Abs(cf(2, 1))
           End If
           scf = (cf(1, 1) + cf(2, 1)) / (1 - mincf)
         ElseIf cf(1, 1) < 0 And cf(2, 1) < 0 Then
           scf = cf(1, 1) + cf(2, 1) + cf(1, 1) * cf(2, 1)
         End If
       ElseIf grid_dep(i, 2) = 1 And grid_dep(i, 3) = -1 Then
         If cf(1, 1) >= 0 And cf(2, 2) >= 0 Then
           scf = cf(1, 1) + cf(2, 2) - cf(1, 1) * cf(2, 2)
         ElseIf (cf(1, 1) > 0 And cf(2, 2) < 0) Or (cf(1, 1) < 0 And cf(2, 2) > 0) Then
           If Abs(cf(1, 1)) <= Abs(cf(2, 2)) Then
             mincf = Abs(cf(1, 1))
           ElseIf Abs(cf(1, 1)) > Abs(cf(2, 2)) Then
             mincf = Abs(cf(2, 2))
           End If
           scf = (cf(1, 1) + cf(2, 2)) / (1 - mincf)
         ElseIf cf(1, 1) < 0 And cf(2, 2) < 0 Then
           scf = cf(1, 1) + cf(2, 2) + cf(1, 1) * cf(2, 2)
         End If
       ElseIf grid_dep(i, 2) = 1 And grid_dep(i, 3) = 0 Then
         scf = cf(1, 1)
       ElseIf grid_dep(i, 2) = -1 And grid_dep(i, 3) = 1 Then
         If cf(1, 2) >= 0 And cf(2, 1) >= 0 Then
           scf = cf(1, 2) + cf(2, 1) - cf(1, 2) * cf(2, 1)
         ElseIf (cf(1, 2) > 0 And cf(2, 1) < 0) Or (cf(1, 2) < 0 And cf(2, 1) > 0) Then
           If Abs(cf(1, 2)) <= Abs(cf(2, 1)) Then
             mincf = Abs(cf(1, 2))
           ElseIf Abs(cf(1, 2)) > Abs(cf(2, 1)) Then
             mincf = Abs(cf(2, 1))
           End If
           scf = (cf(1, 2) + cf(2, 1)) / (1 - mincf)
         ElseIf cf(1, 2) < 0 And cf(2, 1) < 0 Then
           scf = cf(1, 2) + cf(2, 1) + cf(1, 2) * cf(2, 1)
         End If
       ElseIf grid_dep(i, 2) = -1 And grid_dep(i, 3) = -1 Then
         If cf(1, 2) >= 0 And cf(2, 2) >= 0 Then
           scf = cf(1, 2) + cf(2, 2) - cf(1, 2) * cf(2, 2)
         ElseIf (cf(1, 2) > 0 And cf(2, 2) < 0) Or (cf(1, 2) < 0 And cf(2, 2) > 0) Then
           If Abs(cf(1, 2)) <= Abs(cf(2, 2)) Then
             mincf = Abs(cf(1, 2))
           ElseIf Abs(cf(1, 2)) > Abs(cf(2, 2)) Then
             mincf = Abs(cf(2, 2))
           End If
           scf = (cf(1, 2) + cf(2, 2)) / (1 - mincf)
         ElseIf cf(1, 2) < 0 And cf(2, 2) < 0 Then
           scf = cf(1, 2) + cf(2, 2) + cf(1, 2) * cf(2, 2)
         End If
       ElseIf grid_dep(i, 2) = -1 And grid_dep(i, 3) = 0 Then
           scf = cf(1, 2)
       ElseIf grid_dep(i, 2) = 0 And grid_dep(i, 3) = 1 Then
           scf = cf(2, 1)
       ElseIf grid_dep(i, 2) = 0 And grid_dep(i, 3) = -1 Then
           scf = cf(2, 2)
       ElseIf grid_dep(i, 2) = 0 And grid_dep(i, 3) = 0 Then
           scf = 0
       End If
       For j = 3 To m
         If grid_dep(i, j + 1) = 1 Then
           If scf >= 0 And cf(j, 1) >= 0 Then
             scf1 = scf + cf(j, 1) - scf * cf(j, 1)
           ElseIf (scf > 0 And cf(j, 1) < 0) Or (scf < 0 And cf(j, 1) > 0) Then
 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美专区在线| 国产三级精品视频| 精品日韩欧美在线| 亚洲视频一二三| 美女精品自拍一二三四| 99久久精品情趣| 久久亚洲一级片| 日日夜夜免费精品| 91亚洲午夜精品久久久久久| 欧美成人一区二区三区片免费 | 欧洲亚洲国产日韩| 国产日韩三级在线| 久久精品国产免费看久久精品| 亚洲午夜羞羞片| 91猫先生在线| 亚洲伊人伊色伊影伊综合网| 波多野结衣中文字幕一区| 欧美一区二区在线视频| 亚洲欧美一区二区三区久本道91| 成人18视频日本| 欧美α欧美αv大片| 亚洲国产一区二区视频| 色系网站成人免费| 国产精品二区一区二区aⅴ污介绍| 九九精品一区二区| 精品国产一区二区三区av性色 | 久久先锋影音av| 日韩三级精品电影久久久| 亚洲婷婷国产精品电影人久久| 国产一区二区三区在线观看免费 | 国产精品入口麻豆九色| 久久机这里只有精品| 欧美日本乱大交xxxxx| 亚洲精品日韩一| 91高清视频在线| 亚洲精品成人天堂一二三| 91免费视频观看| 亚洲精品伦理在线| 欧美唯美清纯偷拍| 爽好久久久欧美精品| 在线观看91av| 奇米影视一区二区三区小说| 制服丝袜一区二区三区| 日本不卡1234视频| 26uuu色噜噜精品一区二区| 国产精品乡下勾搭老头1| 久久99精品久久久久久动态图| 久久成人精品无人区| 欧美日韩在线播放三区| 免费在线看一区| 久久午夜老司机| av在线不卡电影| 亚洲成av人**亚洲成av**| 正在播放亚洲一区| 国产精品1区2区3区在线观看| 国产精品免费看片| 欧美午夜视频网站| 美女诱惑一区二区| 国产精品乱人伦| 在线观看日韩高清av| 国内精品国产成人| 亚洲视频免费在线| 日韩一本二本av| 91在线视频播放地址| 男女男精品网站| 国产精品久久久久久久久动漫| 欧美自拍偷拍一区| 精东粉嫩av免费一区二区三区| 国产精品国产三级国产aⅴ中文 | 激情综合色播激情啊| 奇米精品一区二区三区在线观看| 欧美成人乱码一区二区三区| av午夜一区麻豆| 奇米综合一区二区三区精品视频| 国产亚洲美州欧州综合国| 91久久免费观看| 精品一区二区三区免费毛片爱| 亚洲欧洲一区二区在线播放| 欧美一区二区三区在线看| av在线不卡免费看| 九九视频精品免费| 亚洲电影视频在线| 国产精品国产三级国产普通话三级| 欧美一级视频精品观看| 91浏览器打开| 国产不卡视频在线观看| 日韩高清在线观看| 亚洲激情自拍偷拍| 亚洲一区二区美女| 色偷偷成人一区二区三区91| 日韩电影网1区2区| 亚洲综合图片区| 国产精品区一区二区三区| 精品奇米国产一区二区三区| 欧美日免费三级在线| 91在线视频观看| 不卡视频一二三四| 国产suv一区二区三区88区| 美腿丝袜亚洲色图| 图片区小说区国产精品视频| 一区二区三区蜜桃网| 亚洲天堂精品视频| 国产精品美女久久久久久久 | 亚洲一区在线播放| 成人欧美一区二区三区1314| 国产日韩欧美精品电影三级在线| 欧美一区二区三区色| 欧美人妇做爰xxxⅹ性高电影| 色综合久久88色综合天天免费| 成人小视频免费在线观看| 国产在线不卡一卡二卡三卡四卡| 国产suv精品一区二区6| 久久免费的精品国产v∧| 日韩欧美色综合网站| 日韩一区和二区| 中文字幕一区二区三区在线播放 | 日韩三级精品电影久久久| 欧美日韩精品一二三区| 欧美人体做爰大胆视频| 欧美日韩国产在线播放网站| 欧美天天综合网| 欧美日韩高清一区二区三区| 欧美日韩中文国产| 欧美精品一二三四| 欧美xxxxxxxx| 久久精品视频一区| 中文字幕人成不卡一区| 亚洲免费av高清| 亚州成人在线电影| 看电影不卡的网站| 国产成人三级在线观看| 成人av动漫在线| 在线亚洲一区二区| 国产精品原创巨作av| 91老师片黄在线观看| 日韩av一区二区在线影视| 蜜臀av一区二区在线观看| 国产一区二区看久久| 成人免费毛片app| 欧美性色黄大片| 精品国产伦一区二区三区观看方式 | 色综合天天综合狠狠| 欧美色老头old∨ideo| 日韩欧美在线网站| 欧美国产精品中文字幕| 亚洲一区二区影院| 久久电影网电视剧免费观看| 夫妻av一区二区| 欧美日韩国产大片| 久久亚洲捆绑美女| 亚洲综合色婷婷| 激情都市一区二区| 91黄色免费网站| 亚洲精品一区二区三区影院| 亚洲视频资源在线| 一区在线播放视频| 国产精品久久久久久久久久久免费看| 欧美aa在线视频| 日韩欧美国产麻豆| caoporn国产一区二区| 精品国产在天天线2019| 欧美激情综合在线| 一区二区三区在线观看欧美| 蜜臀av一区二区在线免费观看 | 国产精品久久久久影院色老大| 亚洲一区二区在线视频| 国产精品资源站在线| 91.com在线观看| 国产精品视频麻豆| 六月丁香婷婷久久| 在线精品视频小说1| 国产区在线观看成人精品| 日韩在线播放一区二区| 91小视频免费观看| 国产网站一区二区三区| 日本三级韩国三级欧美三级| 91美女蜜桃在线| 国产精品天美传媒| 精品在线一区二区| 欧美系列在线观看| 不卡视频在线观看| 亚洲美女免费在线| 国产白丝精品91爽爽久久| 日韩亚洲欧美成人一区| 亚洲第一久久影院| 在线一区二区三区四区五区| 亚洲人成在线观看一区二区| 99精品视频一区| 日本一区二区三区在线不卡| 美女被吸乳得到大胸91| 欧美一区二区三区日韩视频| 亚洲大尺度视频在线观看| 欧美综合一区二区| 亚洲欧美激情插| 99久久精品99国产精品| 中文字幕在线观看一区| www.综合网.com| 国产精品嫩草久久久久| 成人福利在线看| 国产精品国产自产拍高清av王其|