Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoruet committed Oct 2, 2024
1 parent 72c33e2 commit 68d8d74
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ template <typename T>
struct RegrSlopeFunc : AggregateFunctionRegrData<T> {
static constexpr const char* name = "regr_slope";

Float64 get_result() const {
return this->get_slope();
}
Float64 get_result() const { return this->get_slope(); }
};

template <typename T>
Expand All @@ -116,8 +114,7 @@ struct RegrInterceptFunc : AggregateFunctionRegrData<T> {
auto slope = this->get_slope();
if (std::isnan(slope)) {
return slope;
}
else {
} else {
Float64 intercept = (this->sum_y - slope * this->sum_x) / this->count;
return intercept;
}
Expand Down

0 comments on commit 68d8d74

Please sign in to comment.