Skip to content

Instantly share code, notes, and snippets.

@judfs
judfs / PolynomialRegression.h
Last active August 27, 2021 18:45 — forked from chrisengelsma/PolynomialRegression.h
Polynomial Regression (Quadratic Fit) in C++
#pragma once
/**
* https://gist.github.com/chrisengelsma/108f7ab0a746323beaaf7d6634cf4add
*
* PURPOSE:
*
* Polynomial Regression aims to fit a non-linear relationship to a set of
* points. It approximates this by solving a series of linear equations using
* a least-squares approach.
*
@judfs
judfs / gist:62febfd4a1f4b46fb4c59c948f5dd7ab
Last active October 11, 2024 18:22
clone psudeo code
f = open(path, 'r')
dsts = [open(it, 'w') for it in dst_paths]
nbuf = 1024
while file_not_complete:
buffer = read_async(f, nbuf)
await all
for d in dsts:
d.write_async(buffer)
await all