Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
IntroductionRenderer GalleryRenderersAnalysis
computeQuantilescomputePercentilescomputeCorrelationcomputeCovariancedetectOutliersdetectOutliersZScorecomputeExtendedStatsdescribeExtendedStatsQuantileResultCorrelationResultOutlierResultExtendedStatscreateDBSCANdbscanDBSCANDBSCAN.fitDBSCAN.destroyDBSCANOptionsDBSCANResultcreateHierarchicalClusteringhierarchicalClusteringHierarchicalClusteringHierarchicalClustering.fitHierarchicalClustering.destroyLinkageMethodDistanceMetricHierarchicalOptionsDendrogramNodeHierarchicalResultcomputeHistogramgetHistogramCentersnormalizeHistogramHistogramResultcreateKDEkdeKDEKDE.fitKDE.destroyKernelTypeKDEOptionsKDEResultcreateKMeanskmeansKMeansKMeans.fitKMeans.destroyKMeansOptionsKMeansResultcreatePCApcaPCAPCA.fitPCA.destroyPCAOptionsPCAResultthrottleProgressconsoleProgressProgressInfoProgressCallbackcomputeStatscomputeMinMaxdescribeStatsTensorStatscreateTSNEtsneTSNETSNE.fitTSNE.destroyTSNEOptionsTSNEResultcreateUMAPumapUMAPUMAP.fitUMAP.destroyUMAPOptionsUMAPResult
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. viz
  3. viz
  4. analysis
  5. DendrogramNode

viz.analysis.DendrogramNode

export interface DendrogramNode {
  /** Index of this node (0 to numPoints-1 for leaves, numPoints+ for merged nodes) */
  id: number;
  /** Left child index (or -1 for leaf) */
  left: number;
  /** Right child index (or -1 for leaf) */
  right: number;
  /** Distance at which merge occurred */
  distance: number;
  /** Number of points in this cluster */
  size: number;
  /** Height in dendrogram (for visualization) */
  height: number;
}
id(number)
– Index of this node (0 to numPoints-1 for leaves, numPoints+ for merged nodes)
left(number)
– Left child index (or -1 for leaf)
right(number)
– Right child index (or -1 for leaf)
distance(number)
– Distance at which merge occurred
size(number)
– Number of points in this cluster
height(number)
– Height in dendrogram (for visualization)

A single merge in the dendrogram.

Previous
DBSCANResult
Next
describeExtendedStats