Hyperplane Distance Calculator

Measure point distances, signed margins, projections, classifications, and parallel hyperplane spacing with detailed steps, batch analysis, interactive charts, and exportable machine learning reports instantly.

Calculator Inputs

Used for parallel-plane distance.
Enter one weight per dimension.
Separate coordinates with commas. Separate row sections using vertical bars.
Uses the same weight vector.

Formula Used

Point distance: d = |w · x + b| / ||w|| Signed distance: dₛ = (w · x + b) / ||w|| SVM geometric margin: γ = y(w · x + b) / ||w|| Parallel hyperplanes: d = |b₂ - b₁| / ||w|| Margin width: 2 / ||w|| Projection: xₚ = x - ((w · x + b) / ||w||²)w

The weight vector is perpendicular to the hyperplane. The sign identifies the point’s side. The absolute value gives perpendicular distance.

How to Use

  1. Choose the number of dimensions.
  2. Enter matching hyperplane weights and one bias.
  3. Select a point row format.
  4. Paste one or many point rows.
  5. Add labels for SVM accuracy analysis.
  6. Set tolerances, precision, and threshold.
  7. Submit the form and review ranked results.
  8. Copy, print, or download the report.

Example Data

ItemExampleMeaning
Weights2, -1Normal vector for a two-dimensional line.
Bias-3Hyperplane equation becomes 2x₁ - x₂ - 3 = 0.
PointA | 3, 2 | 1Named point with positive class label.
Second bias2Creates a parallel comparison hyperplane.

Frequently Asked Questions

What is a hyperplane?

A hyperplane is a flat decision boundary. It has one fewer dimension than its space. Linear classifiers often use hyperplanes.

What does signed distance show?

Signed distance includes direction. Positive and negative signs identify opposite sides. Zero indicates the boundary.

Why divide by the weight norm?

The raw score depends on weight scale. Dividing removes that scaling effect. The result becomes geometric distance.

Can this evaluate multiple points?

Yes, enter one point per line. Results are ranked by distance. Batch statistics summarize the dataset.

How are support vectors identified?

Canonical SVM support vectors satisfy scores near positive or negative one. The tolerance controls acceptable deviation. Scaling must match canonical form.

What is functional margin?

Functional margin multiplies the score by the class sign. Its size changes with weight scaling. Geometric margin removes that scaling.

What is the projected point?

It is the nearest point on the hyperplane. The connecting segment is perpendicular. Its length equals the absolute distance.

Can nonparallel hyperplanes be compared?

A single constant distance exists only for parallel hyperplanes. This calculator reuses one weight vector. Different weights require another analysis.

Why might the chart not appear?

Charts are limited to two or three dimensions. Higher-dimensional results remain numerically valid. Use projections for detailed inspection.

Related Calculators

Support Vector Machine Margin CalculatorKernel Function CalculatorRadial Basis Function Kernel CalculatorPolynomial Kernel CalculatorSVM Decision Function Calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.