COSC-4P80-Assignment-3/include/assign3/fwdecl.h

80 lines
2.1 KiB
C
Raw Permalink Normal View History

2024-11-04 20:03:12 -05:00
#pragma once
/*
* Copyright (C) 2024 Brett Terpstra
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef COSC_4P80_ASSIGNMENT_3_FWDECL_H
#define COSC_4P80_ASSIGNMENT_3_FWDECL_H
#include <blt/std/types.h>
2024-11-15 17:08:54 -05:00
#include <blt/std/hashmap.h>
#include <array>
2024-11-04 20:03:12 -05:00
namespace assign3
{
using Scalar = float;
2024-11-06 01:22:52 -05:00
inline constexpr blt::i32 RENDER_2D = 0x0;
inline constexpr blt::i32 RENDER_3D = 0x1;
2024-11-18 00:53:32 -05:00
enum class shape_t : blt::i32
2024-11-06 01:22:52 -05:00
{
2024-11-18 00:53:32 -05:00
GRID,
GRID_WRAP,
GRID_OFFSET,
GRID_OFFSET_WRAP
};
inline std::array<std::string, 4> shape_names{
2024-11-18 16:49:56 -05:00
"Grid",
"Edge Wrapped Grid",
"Honey Comb Grid",
"Edge Wrapped Honey Comb"
2024-11-06 01:22:52 -05:00
};
2024-11-15 17:08:54 -05:00
2024-11-18 16:49:56 -05:00
enum class debug_t
2024-11-15 17:08:54 -05:00
{
DATA_POINT,
DISTANCE
};
2024-11-18 00:53:32 -05:00
inline std::array<std::string, 2> debug_names{
2024-11-15 17:08:54 -05:00
"Distance to Datapoint",
"Distance to Neighbours"
};
2024-11-18 16:49:56 -05:00
enum class init_t
{
COMPLETELY_RANDOM,
RANDOM_DATA,
SAMPLED_DATA
};
inline std::array<std::string, 3> init_names{
2024-11-20 21:44:21 -05:00
"Random Unit",
"Random Bounded",
"Random Sample"
2024-11-18 16:49:56 -05:00
};
inline std::array<std::string, 3> init_helps{
"Initializes weights randomly between -1 and 1",
"Find min and max of each data element, then initialize weights between that range",
"Initialize weights based on the input data"
};
2024-11-04 20:03:12 -05:00
}
#endif //COSC_4P80_ASSIGNMENT_3_FWDECL_H