Uses of Class
com.google.common.math.LinearTransformation
Package
Description
Arithmetic functions operating on primitive values and on
BigInteger
and BigDecimal
instances.-
Uses of LinearTransformation in com.google.common.math
Modifier and TypeMethodDescriptionLinearTransformation.LinearTransformationBuilder.and
(double x2, double y2) Finish building an instance which also mapsx = x2
toy = y2
.static LinearTransformation
LinearTransformation.forNaN()
Builds an instance for datasets which containsDouble.NaN
.static LinearTransformation
LinearTransformation.horizontal
(double y) Builds an instance representing a horizontal transformation with a constant value ofy
.abstract LinearTransformation
LinearTransformation.inverse()
Returns the inverse linear transformation.PairedStats.leastSquaresFit()
Returns a linear transformation giving the best fit to the data according to Ordinary Least Squares linear regression ofy
as a function ofx
.final LinearTransformation
PairedStatsAccumulator.leastSquaresFit()
Returns a linear transformation giving the best fit to the data according to Ordinary Least Squares linear regression ofy
as a function ofx
.static LinearTransformation
LinearTransformation.vertical
(double x) Builds an instance representing a vertical transformation with a constant value ofx
.LinearTransformation.LinearTransformationBuilder.withSlope
(double slope) Finish building an instance with the given slope, i.e. the rate of change ofy
with respect tox
.