# \[ANN\] CircleFit.jl

**URL:** <https://discourse.julialang.org/t/ann-circlefit-jl/45773>\
**Category:** Package Announcements\
**Created:** [August 29, 2020, 11:35pm UTC](https://discourse.julialang.org/t/ann-circlefit-jl/45773 "2020-08-29T23:35:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [August 29, 2020, 11:35pm UTC](https://discourse.julialang.org/t/ann-circlefit-jl/45773/1 "2020-08-29T23:35:47Z")

</div>

[This](https://github.com/feanor12/CircleFit.jl) is a simple package to fit a circle to points in a plane.  
Currently, there are 3 methods implemented (Kasa, Pratt, Taubin).

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [December 19, 2021, 10:49am UTC](https://discourse.julialang.org/t/ann-circlefit-jl/45773/2 "2021-12-19T10:49:05Z")

</div>

To expand the package a bit I want to to include some methods provided by `StatsBase` like `dof`, `residuals`, `coef`, `rss`.

I was thinking of introducing a new return struct which can handle those methods.  
Is there a common naming scheme or procedure on how to do handle for results?

To also implement `fit` and `fit!` I think I need a struct to represent the model itself, not only the results. Are there any good examples on how to implement a `RegressionModel`?

The new version is currently developed in the statsmodel branch.  
[https://github.com/feanor12/CircleFit.jl/blob/statsmodel/src/CircleFit.jl](https://github.com/feanor12/CircleFit.jl/blob/statsmodel/src/CircleFit.jl)

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [December 20, 2021, 6:10pm UTC](https://discourse.julialang.org/t/ann-circlefit-jl/45773/3 "2021-12-20T18:10:39Z")

</div>

Just registered version 0.2, which now uses a StatsBase.RegressionModel like interface.
