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. KDEOptions

viz.analysis.KDEOptions

export interface KDEOptions {
  /** Kernel function (default: 'gaussian') */
  kernel?: KernelType;
  /** Bandwidth (default: computed using Silverman's rule) */
  bandwidth?: number;
  /** Number of evaluation points (default: 256) */
  numPoints?: number;
  /** Min value for evaluation range (default: auto from data) */
  min?: number;
  /** Max value for evaluation range (default: auto from data) */
  max?: number;
  /** Extend range beyond data by this factor (default: 0.1) */
  extend?: number;
}
kernel(KernelType)optional
– Kernel function (default: 'gaussian')
bandwidth(number)optional
– Bandwidth (default: computed using Silverman's rule)
numPoints(number)optional
– Number of evaluation points (default: 256)
min(number)optional
– Min value for evaluation range (default: auto from data)
max(number)optional
– Max value for evaluation range (default: auto from data)
extend(number)optional
– Extend range beyond data by this factor (default: 0.1)

Options for KDE computation.

Previous
KDE.fit
Next
KDEResult