¥i¥H¦bfunction¤¤¥t¨âÓ°}¦C¤¤ªºÈ¬Û´î
- ©«¤l
- 13
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2013-10-25
- ³Ì«áµn¿ý
- 2013-12-2
|
¥i¥H¦bfunction¤¤¥t¨âÓ°}¦C¤¤ªºÈ¬Û´î
½Ð°Ý¤@¤U¦U¦ì«e½ú
§Ú·Q¼g¤@Ófunction , input¤¤¦³¨âÓ¬OarrayA ©M arrayB , ¨ä¤¤arrayA ¬O·|§ïÅܪº ,arrayB¬O©T©wªº
¦bfunction¸Ì§Ú·QnÅýarrayA - arrayB ¦¨¬°¤@ÓÅÜ¼Æ arrayC , ¶i¦Ó¹ï arrayC ¨D¥§¡ ¦ý¤£ª¾¨ìþÃä¥X¤F¿ù?
ªþ¤W§Úªºµ{¦¡½X½Ð¤j®aÀ°§Ú¬Ý¤@¤U ÁÂÁÂÅo
§Ú¼gªºfunction¬O module1 ¸Ìªº TrkErr
Test.rar (23.44 KB)
|
|
|
|
|
|
|
- ©«¤l
- 13
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2013-10-25
- ³Ì«áµn¿ý
- 2013-12-2
|
¦^´_ 9# ML089
ÁÂÁ§Aªº¦^ÂÐ §ÚÀˬd¤F¤@¤U ¬O§Ú¦³Ócells ±q¹s¶}©l¤F @@ ¤£¦n·N«äªü |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¦^´_ 8# ldneye
»yªk¨S¦³¿ù»~
À³¸Ó¬O k ¨S¦³È©Î¬°0©ÒP¡A½Ð³]¤¤Â_ÂI¤Î«öF8³v±ø¬d¬Ý k ªºÅÜ¤Æ |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 13
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2013-10-25
- ³Ì«áµn¿ý
- 2013-12-2
|
¦^´_ 6# ML089
ÁÂÁÂML¤j §Ú¸Õ¤F§Aªº¨âÓ¤èªk ³£¨S¿ìªk¶] ®Ú¾Ú§ÚÀˬdªºµ²ªG µ{¦¡Á`¬O¦b Set AP = Range(Cells(k, 3), Cells(k, 14)) ³o¦æ¶]¤£¹L¥h ¤£ª¾¹D³o¼Ëªº¼gªk¬O¦³¤°»ò°ÝÃD¶Ü?? |
|
|
|
|
|
|
- ©«¤l
- 13
- ¥DÃD
- 2
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2013-10-25
- ³Ì«áµn¿ý
- 2013-12-2
|
¦^´_ 2# stillfish00
ÁÂÁ¡A³oÓ¤èªk§Ú¤@®É¨S¦³·Q¨ì ¥H«á·|°O¦íªº°Õ ·PÁÂò |
|
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
³o¬O¥t¤@ºØ½m²ß¼gªk¡A½Ð°Ñ¦Ò
Function TrkErr(Arr As Range, Brr As Range, FN As Integer) As Double
Dim avg As Single, SumSq As Single
FN = Arr.Count
Crr = Application.Evaluate(Arr.Address & "-" & Brr.Address)
avg = WorksheetFunction.Average(Crr)
For Each i In Arr
SumSq = SumSq + (i - avg) ^ 2
Next i
TrkErr = Sqr(SumSq / (FN - 1))
End Function |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
¥»©«³Ì«á¥Ñ ML089 ©ó 2013-11-29 17:58 ½s¿è
Function TrkErr(Arr As Range, Brr As Range, FN As Integer) As Double
Dim avg As Single, SumSq As Single ', Crr As Range
Dim i As Range
'FN ¬Oloopªº¦¸¼Æ ¤]¬O¾ãÓ¸ê®Æªºrows -1 ;
'¦]¬°§Ú¨S¦³§ó¦nªº¤èªk¥i¥Hª½±µ¦bfunction¸Ì¨D ©Ò¥H§ï¬°input
'¦pªG¦³§ó¦nªº¤èªk¤]½Ð§iª¾ ÁÂÁÂò
FN = Arr.Count
ReDim Crr(FN)
For x = 1 To Arr.Count
Crr(x) = Arr(x) - Brr(x)
Next
' Brr¬O©T©wªº Arr¬O¤£¦Pªº¤½¥q
avg = WorksheetFunction.Average(Crr)
For Each i In Arr
SumSq = SumSq + (i - avg) ^ 2
Next i
FN = Arr.Count
TrkErr = Sqr(SumSq / (FN - 1))
End Function |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
3#¤£¹ï REDIM ¤£¯à¦b°j°é¸Ì
FN = Arr.Count
ReDim Crr(x)
For x = 1 To FN
Crr(x) = Arr(x) - Brr(x)
Next |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 2025
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 2053
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- Office2007
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2011-3-2
- ³Ì«áµn¿ý
- 2024-3-14
|
FN = Arr.Count
For x = 1 To FN
ReDim Crr(x)
Crr(x) = Arr(x) - Brr(x)
Next |
|
{...} ªí¥Ü»Ýn¥Î CTRL+SHIFT+ENTER ¤TÁä¿é¤J¤½¦¡
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
arrayA - arrayB ¦¨¬°¤@ÓÅÜ¼Æ arrayC , ¶i¦Ó¹ï arrayC ¨D¥§¡
ldneye µoªí©ó 2013-11-28 09:59
¬Ý¤£À´TrkErr¥\¯à
§A»¡ arrayA - arrayB ¦¨¬° arrayC
¨º¨DarrayC ¥§¡ = arrayA¥§¡ - arrayB¥§¡ ´N¦n¤F°Ú |
|
|
|
|
|
|