模具鋼材國產和進口的價格不同,不同時間段內的價格都有所浮動,建議您咨詢一下在線客服,得到實時鋼材報價!NCLHome>
Documentation>
Generalappliedmath,
Statistics
Performsk-meansclusteringviatheHartiganandWongAS-136algorithm.
Availableinversion6.3.0andlater.
functionkmeans_as136(
x:numeric,;floatordouble
k[1]:integer,
opt[1]:logical
return_val:floatordouble
Thereturnarray(say),clcnter,willcontainthecluster
centers.Itwillbedimensioned(k,N),whereN
collectivelyrepresentsthe'variable'dimension(s).
clcnterwillhavethefollowingattributesassociatedwithit:
id-aone-dimensionalintegerarrayof
sizeMindicatingtheclustertowhicheachobservationis
assigned.
npts-aone-dimensionalintegerarrayof
sizekcontainingthenumberofpointsineachcluster.
ss2-aone-dimensionaldoublearrayof
sizekcontainingthewithin-clustersumofsquares.
K-meansisacentroid-basedclustermethod.
Theobservationsareallocatedtokclustersinsuchawaythatthe
within-clustersumofsquaresisminimized.K-meansclusteringrequiresthat
thenumberofclusterstobeextractedbespecifiedinadvance.
Asnotedby
"Thenumberofclustersshouldmatchthedata.Anincorrectchoiceofthenumberofclusterswillinvalidatethewholeprocess.AnempiricalwaytofindthebestnumberofclustersistotryK-meansclusteringwithdifferentnumberofclustersandmeasuretheresultingsumofsquares."
Thek-meansalgorithmworksreasonablywellwhenthedatafitstheclustermodel:
Thenumberofclustersis'consistent'withthedata.
Thedatapointswithinaclusterarecenteredaroundthatcluster
Thespread/varianceoftheclustersissimilar,ieeachdatapointbelongstotheclosestcluster
Limitations:K-meansmayhaveproblemswhenclustersareofverydifferingsizes;
outliersarepresent;oremptyclustersexist.
TheoriginalcodeiscreatedforCartesiangrids.Iftheapplicationrequiresusinggridpoints
orstationslocatedathighlatitudes,itissuggestedthat
css2cbeused
tointerpolatetoCartesiancoordinates.Thesebetterreflectthetruedistancesandshouldbeinputtothefunction.
Themodifiedcodeusedbythisfunctionwasdownloadedfrom
JohnBurkardt'swebsite.
TheoriginalHartigan&WongFortrancodewasfrom:
JohnHartigan,ManchekWong,
AlgorithmAS136:
AK-MeansClusteringAlgorithm,
AppliedStatistics,
Volume28,Number1,1979,pages100-108.
Example1:Thesourceofthisexampleis
Defaultoptionsareused.
v0(/1.0,1.5,3.0,5.0,3.5,4.5,3.5/);1stvariable
v1(/1.0,2.0,4.0,7.0,5.0,5.0AS136材質出售,4.5/);2ndvariable
mdimsizes(v1);#observations
n2;#variables
k2;#clusters(userspecified)
xnew((/n,m/),typeof(v1),"No_FillValue")
x(0,:)v0
x(1,:)v1
clcntrkmeans_as136(x,kAS136材質出售,False);usedefaultoptions
print(clcntr);(1.25,1.5)and(3.9,5.1)
Aneditedversionoftheoutputfollows:
Variable:clcntr
Type:float
TotalSize:16bytes
4values
NumberofDimensions:2
Dimensionsandsizes:[2]x[2](kcX(:,{-30:30},:);x(timeAS136材質出售,lat,lon)
;reorderviaNCL'snameddimensionreordering
xrx(lat|:,lon|:,time|:);make'time'(observations;M)therightmostdimension
;thelat,lonarethe'variables'(N)
k3;#clusters(userspecified)
optTrue
opt@iseed1
clcntrkmeans_as136(xr,k,opt);inputthereorderedarray
:;clcntr(3,nlat,mlon)
delete(xr);deleteifnolongerneeded(notnecessary)東锜精密模具代理分銷美國(芬可樂)、日本(日立、大同、新日鐵)、德國(薩斯特、布德魯斯)、瑞典(進口)、歐洲(進口)等進口優質特殊鋼材,公司通過嚴格的進貨標準及先進的品質檢測儀器,保證為客戶提供合格優質的產品。
本文部分內容來源于網絡,我們僅作為信息分享。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。如發現本站有涉嫌抄襲侵權/違法違規的內容,請發送郵件至tokaits@163.com舉報,一經查實,本站將立刻刪除。
關注我們:
Copyright © 2002-2023 蘇州東锜精密模具材料有限公司 版權所有 蘇ICP備10113529號 hc22哈氏合金 hc22鎳基合金 hc22材質 hc22
地址:蘇州相城黃埭高新區東橋聚民路68號
電話:0512-66159259
郵箱:TOKAI@TOKAIS.NET