Skip to content

LinearRegression: add constructor overload that accepts IEnumerable<Coordinates>#3982

Merged
swharden merged 4 commits intoScottPlot:mainfrom
ANGADJEET:feature/add-linear-regression-constructor
Jun 25, 2024
Merged

LinearRegression: add constructor overload that accepts IEnumerable<Coordinates>#3982
swharden merged 4 commits intoScottPlot:mainfrom
ANGADJEET:feature/add-linear-regression-constructor

Conversation

@ANGADJEET
Copy link
Contributor

Pull Request Description

Overview

This pull request adds a new constructor to the LinearRegression struct that accepts a List<Coordinates>. It simplifies creating a LinearRegression instance from a collection of coordinates.

Changes Made

  • Added a constructor overload for LinearRegression that accepts List<Coordinates>.

os

@swharden
Copy link
Member

Thanks @ANGADJEET, this looks great! This new feature will be in the next ScottPlot release 🚀

@swharden swharden merged commit 36a58e2 into ScottPlot:main Jun 25, 2024
@swharden swharden changed the title Added a constructor overload that accepts List<Coordinates> LinearRegression: add constructor overload that accepts IEnumerable<Coordinates> Jun 25, 2024
swharden added a commit to aalgrou/ScottPlot that referenced this pull request Jun 25, 2024
swharden added a commit that referenced this pull request Jun 25, 2024
* CoordinateLine: add constructor overloads for accepting a point and slope #3986

* LinearRegression: add constructor overload that accepts IEnumerable<Coordinates> #3981

* LinearRegression: revert changes in CoordinateLine branch

These changes were resolved in #3982

* CoordinateLine: convert private static methods to constructors

* Update CHANGELOG.md

---------

Co-authored-by: Scott W Harden <[email protected]>
KroMignon added a commit to KroMignon/ScottPlot that referenced this pull request Jun 26, 2024
* upstream/main:
  Fix interaction of axis panels when scale factor is more than 1 (ScottPlot#3994)
  Added ResetMinAndMaxValues() to DataLoggerSource.cs (ScottPlot#3993)
  CoordinateLine: add constructor overloads (ScottPlot#3987)
  Colormap.GetColors() (ScottPlot#3983)
  Added a constructor overload that accepts List<Coordinates> (ScottPlot#3982)
  Signal: improve support for IReadOnlyList<T> (ScottPlot#3978)
  Axes: improve sharpness of axis lines, tick marks, and grid lines (ScottPlot#3976)
  adding console write file name function (ScottPlot#3965)
  Color.ToColor()
  Sandbox: extend minimal API
  Sandbox: Create .NET API project
  SVG XML Updates (ScottPlot#3957)
  Repeat render if changes are made in invoked events (ScottPlot#3952)
  CI: autoformat
  Experimental DataLogger2 using a `CircularBuffer<T>` (ScottPlot#3946)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LinearRegression: add constructor overload that accepts IEnumerable<Coordinates>

2 participants