This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef KNN1_POLYNOMREGRESSION_H | |
#define KNN1_POLYNOMREGRESSION_H | |
#include <iostream> | |
#include "matrix.h" | |
using namespace std; | |
class PolynomRegression { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |