You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ix:=etable.NewIdxView(table) // works on an index view so it can be filtered etcnm, _:=ix.Table.MetaData["name"]
// first compute the distance matrix using whatever metric you wantsmat:=&simat.SimMat{}
smat.TableCol(ix, colNm, "TrialName", false, metric.Euclidean64)
// then do the clusteringcl:=clust.Glom(smat, clust.MinDist) // can choose MaxDist or AvgDist or write your own// then plot the resultspt:=&etable.Table{}
clust.Plot(pt, cl, smat)
plt:=&eplot.Plot2D{}
plt.InitName(plt, colNm)
plt.Params.Title="Cluster Plot of: "+nm+" "+colNmplt.Params.XAxisCol="X"plt.SetTable(pt)
// order of params: on, fixMin, min, fixMax, maxplt.SetColParams("X", false, true, 0, false, 0)
plt.SetColParams("Y", true, true, 0, false, 0)
plt.SetColParams("Label", true, false, 0, false, 0)