Skip to content

ResponseSurface

Index

Type

UncertaintyQuantification.ResponseSurface Type
julia
ResponseSurface(data::DataFrame, dependendVarName::Symbol, deg::Int, dim::Int)

Creates a response surface using polynomial least squares regression with given degree.

Examples

julia
julia> data = DataFrame(x = 1:10, y = [1, 4, 10, 15, 24, 37, 50, 62, 80, 101]);

julia> rs = ResponseSurface(data, :y, 2)
ResponseSurface(MonomialBasis(1, 2, Monomials.Monomial[1, x1, x1²]), [0.48333333333332457, -0.23863636363636026, 1.0189393939393936], [:x], :y)
source