dataset_8hpp_source.tex 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. \hypertarget{dataset_8hpp_source}{}\doxysection{dataset.\+hpp}
  2. \label{dataset_8hpp_source}\index{src/dataset.hpp@{src/dataset.hpp}}
  3. \mbox{\hyperlink{dataset_8hpp}{Go to the documentation of this file.}}
  4. \begin{DoxyCode}{0}
  5. \DoxyCodeLine{1 \textcolor{preprocessor}{\#ifndef DATASET\_HPP}}
  6. \DoxyCodeLine{2 \textcolor{preprocessor}{\#define DATASET\_HPP}}
  7. \DoxyCodeLine{3 }
  8. \DoxyCodeLine{4 \textcolor{preprocessor}{\#include <cstddef>}}
  9. \DoxyCodeLine{5 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{vector_8hpp}{vector.hpp}}"{}}}
  10. \DoxyCodeLine{6 }
  11. \DoxyCodeLine{7 \textcolor{keyword}{using namespace }std;}
  12. \DoxyCodeLine{8 }
  13. \DoxyCodeLine{9 \textcolor{keyword}{class }\mbox{\hyperlink{class_dataset}{Dataset}}\{}
  14. \DoxyCodeLine{10 \textcolor{keyword}{protected}:}
  15. \DoxyCodeLine{11 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_a694f77fcd998ee4b91dad75d57b5d2ab}{train\_size}};}
  16. \DoxyCodeLine{12 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_ab69cb524866ef5b2d14a8a6701f5aea2}{test\_size}};}
  17. \DoxyCodeLine{13 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_aefa53018e8b5bea1c4ad7d359c2e0169}{x\_size}};}
  18. \DoxyCodeLine{14 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_a6da12c43dcebc4375bd9ce33c4a48d79}{y\_size}};}
  19. \DoxyCodeLine{15 \textcolor{keyword}{public}:}
  20. \DoxyCodeLine{16 \mbox{\hyperlink{class_dataset_a2ef0a4a688a218d55ef061c6df659a4a}{Dataset}}();}
  21. \DoxyCodeLine{17 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_a32fa68b53895c6b9b85866cb20111863}{get\_train\_size}}() \textcolor{keyword}{const};}
  22. \DoxyCodeLine{18 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_a72fe64fb9ba5524d6b52e383190fcca6}{get\_test\_size}}() \textcolor{keyword}{const};}
  23. \DoxyCodeLine{19 \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{class_dataset_a4e480d79a9827e5bc75340eaff998d2c}{get\_y\_size}}() \textcolor{keyword}{const};}
  24. \DoxyCodeLine{20 \textcolor{keyword}{virtual} pair<Vector,Vector> \mbox{\hyperlink{class_dataset_ad82b7125619aa7c991abe7a230459502}{get\_train}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} i) \textcolor{keyword}{const}=0;}
  25. \DoxyCodeLine{21 \textcolor{keyword}{virtual} pair<Vector,Vector> \mbox{\hyperlink{class_dataset_a05408d54a3e72a15374e7216fa730098}{get\_test}}(\textcolor{keyword}{const} \textcolor{keywordtype}{size\_t} i) \textcolor{keyword}{const}=0;}
  26. \DoxyCodeLine{22 \};}
  27. \DoxyCodeLine{23 }
  28. \DoxyCodeLine{24 \textcolor{keyword}{inline}}
  29. \DoxyCodeLine{25 \mbox{\hyperlink{class_dataset_a2ef0a4a688a218d55ef061c6df659a4a}{Dataset::Dataset}}()\{}
  30. \DoxyCodeLine{26 \}}
  31. \DoxyCodeLine{27 }
  32. \DoxyCodeLine{28 \textcolor{keyword}{inline} \textcolor{keywordtype}{size\_t}}
  33. \DoxyCodeLine{29 \mbox{\hyperlink{class_dataset_a32fa68b53895c6b9b85866cb20111863}{Dataset::get\_train\_size}}()\textcolor{keyword}{ const}\{}
  34. \DoxyCodeLine{30 \textcolor{keywordflow}{return} \mbox{\hyperlink{class_dataset_a694f77fcd998ee4b91dad75d57b5d2ab}{train\_size}};}
  35. \DoxyCodeLine{31 \}}
  36. \DoxyCodeLine{32 }
  37. \DoxyCodeLine{33 \textcolor{keyword}{inline} \textcolor{keywordtype}{size\_t}}
  38. \DoxyCodeLine{34 \mbox{\hyperlink{class_dataset_a72fe64fb9ba5524d6b52e383190fcca6}{Dataset::get\_test\_size}}()\textcolor{keyword}{ const}\{}
  39. \DoxyCodeLine{35 \textcolor{keywordflow}{return} \mbox{\hyperlink{class_dataset_ab69cb524866ef5b2d14a8a6701f5aea2}{test\_size}};}
  40. \DoxyCodeLine{36 \}}
  41. \DoxyCodeLine{37 }
  42. \DoxyCodeLine{38 \textcolor{keyword}{inline} \textcolor{keywordtype}{size\_t}}
  43. \DoxyCodeLine{39 \mbox{\hyperlink{class_dataset_a4e480d79a9827e5bc75340eaff998d2c}{Dataset::get\_y\_size}}()\textcolor{keyword}{ const}\{}
  44. \DoxyCodeLine{40 \textcolor{keywordflow}{return} \mbox{\hyperlink{class_dataset_a6da12c43dcebc4375bd9ce33c4a48d79}{y\_size}};}
  45. \DoxyCodeLine{41 \}}
  46. \DoxyCodeLine{42 }
  47. \DoxyCodeLine{43 \textcolor{preprocessor}{\#endif}}
  48. \end{DoxyCode}