liveBook · Manning

Interpolation

Interpolation is the estimation or construction of values or representations between known points according to an assumed relationship or specified rule.

How 9 Manning books explain it

Geometry for Programmers

Interpolation is the construction of a function that passes exactly through specified data points.

How it is used
Constructs curves, surfaces, deformation fields, and continuous image-derived functions that must match specified samples exactly.
How deep it goes
Explains exact fitting, polynomial and inverse-distance methods, implementation patterns, and linear edge estimates, while deferring spline treatment.
Examples
Uses point-fitting graphs, scattered 2D and 3D values, mushroom deformation vectors, implicit-surface crossings, and image contour fitting.
What you can do after
Apply it via polynomial, inverse-distance, or linear methods to fit samples exactly and build smooth geometric results.

Read how Geometry for Programmers explains interpolation →

Experimentation for Engineers

A technique for estimating values between observed values using the relationship among nearby known points.

How it is used
Estimates business metrics at unmeasured continuous parameter settings so response surface methodology can optimize them.
How deep it goes
Works from midpoint line segments through one- and two-parameter quadratic surrogate models, deferring linear-regression background to an appendix.
Examples
Uses simulated trading profit over threshold and order size, including three-point and nine-setting experiments.
What you can do after
Apply it via NumPy linear regression to fit surrogate functions, search estimated optima, and validate them with new measurements.

Read how Experimentation for Engineers explains interpolation →

Build a Text-to-Image Generator (from Scratch)

Interpolation is the construction of intermediate values or representations between specified endpoints by varying their contributions.

How it is used
Uses interpolation to probe how initial noise or text conditioning controls transitions between generated images.
How deep it goes
Defines weighted noise blends and implements a ten-image DDIM sequence, then applies weighted text embeddings without deriving their internal representation.
Examples
Shows a seeded ten-flower transition and five lion-to-tiger images generated from differently weighted text embeddings.
What you can do after
Apply it via DDIMScheduler.interpolate() or weighted Stable Diffusion text embeddings to generate image-transition sequences.

Read how Build a Text-to-Image Generator (from Scratch) explains interpolation →

Deep Learning with R, Third Edition

Interpolation is the estimation of values between observed data points under an assumed continuity or smoothness relationship.

How it is used
Explains how deep learning models make sense of unseen inputs near their training examples.
How deep it goes
Distinguishes paths on a latent manifold from pixel averaging and identifies local limits, without giving an interpolation algorithm.
Examples
Uses morphing MNIST digits, invalid pixel averages, and smoothly changing images generated from interpolated text embeddings.
What you can do after
Evaluate/understand it by judging when nearby, well-sampled examples support local generalization rather than an exact procedure.

Read how Deep Learning with R, Third Edition explains interpolation →

Deep Learning with Python, Third Edition

A program-like behavior produced by a model that interpolates within trained examples rather than synthesizing novel algorithms.

How it is used
Explains how learned program-like behaviors generalize near training examples and why they struggle with substantially novel situations.
How deep it goes
Explains latent-manifold interpolation through examples and identifies its limits, without specifying a mechanism for synthesizing new programs.
Examples
Contrasts valid MNIST digit morphs with pixel averages and describes smooth image changes produced by interpolating text embeddings.
What you can do after
Evaluate/understand when interpolative behavior supports local generalization and when novel or algorithmic tasks may exceed it.

Read how Deep Learning with Python, Third Edition explains interpolation →

D3.js in Action, Third Edition

An interpolation function computes intermediate values or visual representations between discrete data points or states.

How it is used
Shapes line and area charts by generating curves between discrete data points.
How deep it goes
Explains curve selection, visual distortion, and D3 implementation, but stops short of mathematical derivations.
Examples
Uses temperature line and area charts, Catmull-Rom curves, and comparisons with Basis, Bundle, and MonotoneX interpolation.
What you can do after
Apply it via D3 line and area generators, then evaluate whether the resulting curve represents the data accurately.

Read how D3.js in Action, Third Edition explains interpolation →

Learn Go with Pocket-Sized Projects

Pixel interpolation estimates output pixel colors when an image is resized to a different resolution.

How it is used
Resizes maze images into fixed-size GIF frames while preserving the input image ratio.
How deep it goes
Explains package selection, scaler implementations, and a concrete scaling call, but not interpolation algorithms internally.
Examples
Uses a 500-pixel-wide maze frame and a NearestNeighbor.Scale call to create animation frames.
What you can do after
Apply it via golang.org/x/image/draw to resize an image into a target rectangle without blurring pixel edges.

Read how Learn Go with Pocket-Sized Projects explains interpolation →

Learn Generative AI with PyTorch

The technique of generating intermediate representations between two latent points to explore a smooth latent space.

How it is used
Generates novel face images and visualizes whether a VAE organizes meaningful, continuous latent representations.
How deep it goes
Defines weighted latent combinations and demonstrates a PyTorch decoding loop, stopping short of mathematical analysis.
Examples
Uses face encodings grouped by gender and glasses, especially women with and without glasses.
What you can do after
Apply it via PyTorch to decode a sequence of intermediate images from two trained-VAE encodings.

Read how Learn Generative AI with PyTorch explains interpolation →

Math for Web Design

Interpolation is the calculation of intermediate values between specified endpoints.

How it is used
Calculates fluid CSS values and changing animation properties from known endpoints.
How deep it goes
Derives viewport formulas and JavaScript lerp implementations, then defers deeper velocity and acceleration formulas.
Examples
Uses fluid margins, padding, gaps, font sizes, title motion, and circular CSS or JavaScript animations.
What you can do after
Apply it via CSS clamp() formulas or JavaScript lerp functions to build fluid layouts and animated interfaces.

Read how Math for Web Design explains interpolation →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.