\hypertarget{mymath_8h_source}{}\doxysection{mymath.\+h}
\label{mymath_8h_source}\index{inc/mymath.h@{inc/mymath.h}}
\mbox{\hyperlink{mymath_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{myarr_8h}{myarr.h}}"{}}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 \textcolor{preprocessor}{\#include <stddef.h>}}
\DoxyCodeLine{6 }
\DoxyCodeLine{20 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_ga227eaade4011887dce2896bb79d155bc}{transpone}}(\textcolor{keywordtype}{double}* arr, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Nrows, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Ncols);}
\DoxyCodeLine{21 }
\DoxyCodeLine{30 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_ga20b46b1a784a88425c75346675dd5a9f}{invert}}(\textcolor{keywordtype}{double}* arr, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Nrows, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Ncols);}
\DoxyCodeLine{31 }
\DoxyCodeLine{44 \textcolor{keywordtype}{double}* \mbox{\hyperlink{group__mymath_gaa416e7200d138f4658d7e0957f99b1f7}{mulmat}}(\textcolor{keyword}{const} \textcolor{keywordtype}{double}* matrix0,}
\DoxyCodeLine{45                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Nrows,}
\DoxyCodeLine{46                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Ncols,}
\DoxyCodeLine{47                \textcolor{keyword}{const} \textcolor{keywordtype}{double}* matrix1,}
\DoxyCodeLine{48                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Mrows,}
\DoxyCodeLine{49                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Mcols);}
\DoxyCodeLine{50 }
\DoxyCodeLine{64 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_gab2f9dd27878a8e05a6aba5b499b178de}{matlinreg}}(\textcolor{keywordtype}{double} coeffs[2],}
\DoxyCodeLine{65                \textcolor{keyword}{const} \textcolor{keywordtype}{double}* xmat,}
\DoxyCodeLine{66                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Nrows,}
\DoxyCodeLine{67                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Ncols,}
\DoxyCodeLine{68                \textcolor{keywordtype}{double}* vec,}
\DoxyCodeLine{69                \textcolor{keyword}{const} \textcolor{keywordtype}{double}* weight);}
\DoxyCodeLine{70 }
\DoxyCodeLine{83 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_ga796beb5c24876db27ada7a5e2466330d}{fitNpeaks}}(\textcolor{keywordtype}{double}* intercept,}
\DoxyCodeLine{84                \textcolor{keywordtype}{double}* slope,}
\DoxyCodeLine{85                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} curPos,}
\DoxyCodeLine{86                \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* maxvals,}
\DoxyCodeLine{87                \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* maxes,}
\DoxyCodeLine{88                \textcolor{keyword}{const} \textcolor{keyword}{struct} \mbox{\hyperlink{structmyarr}{myarr}}* subpos,}
\DoxyCodeLine{89                \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} npeaks,}
\DoxyCodeLine{90                \textcolor{keywordtype}{double} SDthreshold);}
\DoxyCodeLine{91 }
\DoxyCodeLine{102 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_ga7ed6eb4d3afa19567d734e84c0e23ba4}{fastlinreg}}(\textcolor{keywordtype}{double} coeffs[2],}
\DoxyCodeLine{103                 \textcolor{keyword}{const} \textcolor{keywordtype}{double}* xmat,}
\DoxyCodeLine{104                 \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} Npoints,}
\DoxyCodeLine{105                 \textcolor{keyword}{const} \textcolor{keywordtype}{double}* vec,}
\DoxyCodeLine{106                 \textcolor{keyword}{const} \textcolor{keywordtype}{double}* weightArr);}
\DoxyCodeLine{107 }
\DoxyCodeLine{115 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{group__mymath_gad6fc91777cf096e8b0b1cf14109ddbd3}{getmaxpos}}(\textcolor{keyword}{const} \textcolor{keywordtype}{int}* array, \textcolor{keywordtype}{size\_t} ArrayLength);}
\DoxyCodeLine{116 }
\DoxyCodeLine{127 \textcolor{keywordtype}{void} \mbox{\hyperlink{group__mymath_ga239201d57c9b2822f69d5ccb3005cc0f}{linreg}}(\textcolor{keyword}{const} \textcolor{keywordtype}{double}* xarr,}
\DoxyCodeLine{128             \textcolor{keyword}{const} \textcolor{keywordtype}{double}* yarr,}
\DoxyCodeLine{129             \textcolor{keywordtype}{size\_t} ArrayLength,}
\DoxyCodeLine{130             \textcolor{keywordtype}{double}* intercept,}
\DoxyCodeLine{131             \textcolor{keywordtype}{double}* slope,}
\DoxyCodeLine{132             \textcolor{keywordtype}{double}* stdev);}
\DoxyCodeLine{133 }
\DoxyCodeLine{141 \textcolor{keywordtype}{int} \mbox{\hyperlink{group__mymath_ga185afbbfacdb1ebd2fb8bc9f8c7ce458}{shiftHalf}}(\textcolor{keywordtype}{size\_t} value, \textcolor{keywordtype}{size\_t} ArrayLength);}
\DoxyCodeLine{142 }

\end{DoxyCode}
