Skip to content

Instantly share code, notes, and snippets.

1 1 1
1 1 2
1 1 3
1 1 4
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 1 10
#ifndef KNN1_POLYNOMREGRESSION_H
#define KNN1_POLYNOMREGRESSION_H
#include <iostream>
#include "matrix.h"
using namespace std;
class PolynomRegression {
public:
void PolynomRegression::computeAandBandW(void)
{
//Temporary Matrices with Dimension of model complexity + 1
knn::matrix tempAE(mE+1, mE+1);
knn::matrix tempBE(mE+1, 1);
knn::matrix tempWE(mE+1, 1);
std::ofstream logFile;
logFile.open("log.txt",std::ios::out);
std::vector<std::vector<double> > computeTrainingSin(unsigned int pA)
{
//Temp Vectors
std::vector<double> tempTrainingSinX (pA);
std::vector<double> tempTrainingSinT (pA);
std::vector<std::vector<double> > tempTrainingSin(2);
for (int i = 1; i < pA; ++i)
{
@Kaupenjoe
Kaupenjoe / log
Created November 18, 2015 19:13
1 1 1
1 1 2
1 1 3
1 1 4
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 1 10
void PolynomRegression::computeAandBandW(void)
{
//Temporary Matrices with Dimension of model complexity + 1
knn::matrix tempAE(mE+1, mE+1);
knn::matrix tempBE(mE+1, 1);
knn::matrix tempWE(mE+1, 1);
std::ofstream logFile;
logFile.open("log.txt",std::ios::out);