fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -39,11 +39,11 @@ fn linearrelationship(independent_variable []int, dependent_variable []int) Line
// R2 = n(∑xy) - (∑x)(∑y) / sqrt([n(∑x²)-(∑x)²][n(∑y²)-(∑y)²]
r2_value := f64((independent_variable.len * sum_xy) - (sum_x * sum_y)) / math.sqrt(f64((sum_r2_x * independent_variable.len) - (sum_x * sum_x)) * f64((sum_r2_y * dependent_variable.len) - (sum_y * sum_y)))
return LinearResult{
r2: r2_value
intercept: intercept_value
slope: slope_value
r2: r2_value
intercept: intercept_value
slope: slope_value
independent_variable_means: x_means
dependent_variable_means: y_means
dependent_variable_means: y_means
}
}