Skip to content

Commit

Permalink
chore(SurrogatesPolyChaos): fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Jul 18, 2024
1 parent d94ab87 commit 2ccd236
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/SurrogatesPolyChaos/src/SurrogatesPolyChaos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ using PolyChaos

export PolynomialChaosSurrogate, update!

mutable struct PolynomialChaosSurrogate{X, Y, L, U, C, O, N} <: AbstractDeterministicSurrogate
mutable struct PolynomialChaosSurrogate{X, Y, L, U, C, O, N} <:
AbstractDeterministicSurrogate
x::X
y::Y
lb::L
Expand All @@ -28,7 +29,7 @@ function PolynomialChaosSurrogate(x, y, lb::Number, ub::Number;
end

function PolynomialChaosSurrogate(x, y, lb, ub;
orthopolys = MultiOrthoPoly([GaussOrthoPoly(2) for j in 1:length(lb)], 2))
op = MultiOrthoPoly([GaussOrthoPoly(2) for j in 1:length(lb)], 2))
n = length(x)
d = length(lb)
poly_degree = orthopolys.deg
Expand Down Expand Up @@ -83,7 +84,7 @@ function SurrogatesBase.update!(polych::PolynomialChaosSurrogate, x_new, y_new)
polych.x = vcat(polych.x, x_new)
polych.y = vcat(polych.y, y_new)
polych.coeff = _calculatepce_coeff(polych.x, polych.y, polych.num_of_multi_indexes,
polych.orthopolys)
polych.ortopolys)
nothing
end

Expand Down

0 comments on commit 2ccd236

Please sign in to comment.