scalet 0.1.1

Continious wavelet transform
Documentation
/*
 * // Copyright (c) Radzivon Bartoshyk 12/2025. All rights reserved.
 * //
 * // Redistribution and use in source and binary forms, with or without modification,
 * // are permitted provided that the following conditions are met:
 * //
 * // 1.  Redistributions of source code must retain the above copyright notice, this
 * // list of conditions and the following disclaimer.
 * //
 * // 2.  Redistributions in binary form must reproduce the above copyright notice,
 * // this list of conditions and the following disclaimer in the documentation
 * // and/or other materials provided with the distribution.
 * //
 * // 3.  Neither the name of the copyright holder nor the names of its
 * // contributors may be used to endorse or promote products derived from
 * // this software without specific prior written permission.
 * //
 * // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 * // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

pub(crate) static PLASMA_R: [f32; 256] = [
    0.050383, 0.063536, 0.075353, 0.086222, 0.096379, 0.105980, 0.115124, 0.123903, 0.132381,
    0.140603, 0.148607, 0.156421, 0.164070, 0.171574, 0.178950, 0.186213, 0.193374, 0.200445,
    0.207435, 0.214350, 0.221197, 0.227983, 0.234715, 0.241396, 0.248032, 0.254627, 0.261183,
    0.267703, 0.274191, 0.280648, 0.287076, 0.293478, 0.299855, 0.306210, 0.312543, 0.318856,
    0.325150, 0.331426, 0.337683, 0.343925, 0.350150, 0.356359, 0.362553, 0.368733, 0.374897,
    0.381047, 0.387183, 0.393304, 0.399411, 0.405503, 0.411580, 0.417642, 0.423689, 0.429719,
    0.435734, 0.441732, 0.447714, 0.453677, 0.459623, 0.465550, 0.471457, 0.477344, 0.483210,
    0.489055, 0.494877, 0.500678, 0.506454, 0.512206, 0.517933, 0.523633, 0.529306, 0.534952,
    0.540570, 0.546157, 0.551715, 0.557243, 0.562738, 0.568201, 0.573632, 0.579029, 0.584391,
    0.589719, 0.595011, 0.600266, 0.605485, 0.610667, 0.615812, 0.620919, 0.625987, 0.631017,
    0.636008, 0.640959, 0.645872, 0.650746, 0.655580, 0.660374, 0.665129, 0.669845, 0.674522,
    0.679160, 0.683758, 0.688318, 0.692840, 0.697324, 0.701769, 0.706178, 0.710549, 0.714883,
    0.719181, 0.723444, 0.727670, 0.731862, 0.736019, 0.740143, 0.744232, 0.748289, 0.752312,
    0.756304, 0.760264, 0.764193, 0.768090, 0.771958, 0.775796, 0.779604, 0.783383, 0.787133,
    0.790855, 0.794549, 0.798216, 0.801855, 0.805467, 0.809052, 0.812612, 0.816144, 0.819651,
    0.823132, 0.826588, 0.830018, 0.833422, 0.836801, 0.840155, 0.843484, 0.846788, 0.850066,
    0.853319, 0.856547, 0.859750, 0.862927, 0.866078, 0.869203, 0.872303, 0.875376, 0.878423,
    0.881443, 0.884436, 0.887402, 0.890340, 0.893250, 0.896131, 0.898984, 0.901807, 0.904601,
    0.907365, 0.910098, 0.912800, 0.915471, 0.918109, 0.920714, 0.923287, 0.925825, 0.928329,
    0.930798, 0.933232, 0.935630, 0.937990, 0.940313, 0.942598, 0.944844, 0.947051, 0.949217,
    0.951344, 0.953428, 0.955470, 0.957469, 0.959424, 0.961336, 0.963203, 0.965024, 0.966798,
    0.968526, 0.970205, 0.971835, 0.973416, 0.974947, 0.976428, 0.977856, 0.979233, 0.980556,
    0.981826, 0.983041, 0.984199, 0.985301, 0.986345, 0.987332, 0.988260, 0.989128, 0.989935,
    0.990681, 0.991365, 0.991985, 0.992541, 0.993032, 0.993456, 0.993814, 0.994103, 0.994324,
    0.994474, 0.994553, 0.994561, 0.994495, 0.994355, 0.994141, 0.993851, 0.993482, 0.993033,
    0.992505, 0.991897, 0.991209, 0.990439, 0.989587, 0.988648, 0.987621, 0.986509, 0.985314,
    0.984031, 0.982653, 0.981190, 0.979644, 0.977995, 0.976265, 0.974443, 0.972530, 0.970533,
    0.968443, 0.966271, 0.964021, 0.961681, 0.959276, 0.956808, 0.954287, 0.951726, 0.949151,
    0.946602, 0.944152, 0.941896, 0.940015,
];
pub(crate) static PLASMA_G: [f32; 256] = [
    0.029803, 0.028426, 0.027206, 0.026125, 0.025165, 0.024309, 0.023556, 0.022878, 0.022258,
    0.021687, 0.021154, 0.020651, 0.020171, 0.019706, 0.019252, 0.018803, 0.018354, 0.017902,
    0.017442, 0.016973, 0.016497, 0.016007, 0.015502, 0.014979, 0.014439, 0.013882, 0.013308,
    0.012716, 0.012109, 0.011488, 0.010855, 0.010213, 0.009561, 0.008902, 0.008239, 0.007576,
    0.006915, 0.006261, 0.005618, 0.004991, 0.004382, 0.003798, 0.003243, 0.002724, 0.002245,
    0.001814, 0.001434, 0.001114, 0.000859, 0.000678, 0.000577, 0.000564, 0.000646, 0.000831,
    0.001127, 0.001540, 0.002080, 0.002755, 0.003574, 0.004545, 0.005678, 0.006980, 0.008460,
    0.010127, 0.011990, 0.014055, 0.016333, 0.018833, 0.021563, 0.024532, 0.027747, 0.031217,
    0.034950, 0.038954, 0.043136, 0.047331, 0.051545, 0.055778, 0.060028, 0.064296, 0.068579,
    0.072878, 0.077190, 0.081516, 0.085854, 0.090204, 0.094564, 0.098934, 0.103312, 0.107699,
    0.112092, 0.116492, 0.120898, 0.125309, 0.129725, 0.134144, 0.138566, 0.142992, 0.147419,
    0.151848, 0.156278, 0.160709, 0.165141, 0.169573, 0.174005, 0.178437, 0.182868, 0.187299,
    0.191729, 0.196158, 0.200586, 0.205013, 0.209439, 0.213864, 0.218288, 0.222711, 0.227133,
    0.231555, 0.235976, 0.240396, 0.244817, 0.249237, 0.253658, 0.258078, 0.262500, 0.266922,
    0.271345, 0.275770, 0.280197, 0.284626, 0.289057, 0.293491, 0.297928, 0.302368, 0.306812,
    0.311261, 0.315714, 0.320172, 0.324635, 0.329105, 0.333580, 0.338062, 0.342551, 0.347048,
    0.351553, 0.356066, 0.360588, 0.365119, 0.369660, 0.374212, 0.378774, 0.383347, 0.387932,
    0.392529, 0.397139, 0.401762, 0.406398, 0.411048, 0.415712, 0.420392, 0.425087, 0.429797,
    0.434524, 0.439268, 0.444029, 0.448807, 0.453603, 0.458417, 0.463251, 0.468103, 0.472975,
    0.477867, 0.482780, 0.487712, 0.492667, 0.497642, 0.502639, 0.507658, 0.512699, 0.517763,
    0.522850, 0.527960, 0.533093, 0.538250, 0.543431, 0.548636, 0.553865, 0.559118, 0.564396,
    0.569700, 0.575028, 0.580382, 0.585761, 0.591165, 0.596595, 0.602051, 0.607532, 0.613039,
    0.618572, 0.624131, 0.629718, 0.635330, 0.640969, 0.646633, 0.652325, 0.658043, 0.663787,
    0.669558, 0.675355, 0.681179, 0.687030, 0.692907, 0.698810, 0.704741, 0.710698, 0.716681,
    0.722691, 0.728728, 0.734791, 0.740880, 0.746995, 0.753137, 0.759304, 0.765499, 0.771720,
    0.777967, 0.784239, 0.790537, 0.796859, 0.803205, 0.809579, 0.815978, 0.822401, 0.828846,
    0.835315, 0.841812, 0.848329, 0.854866, 0.861432, 0.868016, 0.874622, 0.881250, 0.887896,
    0.894564, 0.901249, 0.907950, 0.914672, 0.921407, 0.928152, 0.934908, 0.941671, 0.948435,
    0.955190, 0.961916, 0.968590, 0.975158,
];
pub(crate) static PLASMA_B: [f32; 256] = [
    0.527975, 0.533124, 0.538007, 0.542658, 0.547103, 0.551368, 0.555468, 0.559423, 0.563250,
    0.566959, 0.570562, 0.574065, 0.577478, 0.580806, 0.584054, 0.587228, 0.590330, 0.593364,
    0.596333, 0.599239, 0.602083, 0.604867, 0.607592, 0.610259, 0.612868, 0.615419, 0.617911,
    0.620346, 0.622722, 0.625038, 0.627295, 0.629490, 0.631624, 0.633694, 0.635700, 0.637640,
    0.639512, 0.641316, 0.643049, 0.644710, 0.646298, 0.647810, 0.649245, 0.650601, 0.651876,
    0.653068, 0.654177, 0.655199, 0.656133, 0.656977, 0.657730, 0.658390, 0.658956, 0.659425,
    0.659797, 0.660069, 0.660240, 0.660310, 0.660277, 0.660139, 0.659897, 0.659549, 0.659095,
    0.658534, 0.657865, 0.657088, 0.656202, 0.655209, 0.654109, 0.652901, 0.651586, 0.650165,
    0.648640, 0.647010, 0.645277, 0.643443, 0.641509, 0.639477, 0.637349, 0.635126, 0.632812,
    0.630408, 0.627917, 0.625342, 0.622686, 0.619951, 0.617140, 0.614257, 0.611305, 0.608287,
    0.605205, 0.602065, 0.598867, 0.595617, 0.592317, 0.588971, 0.585582, 0.582154, 0.578688,
    0.575189, 0.571660, 0.568103, 0.564522, 0.560919, 0.557296, 0.553657, 0.550004, 0.546338,
    0.542663, 0.538981, 0.535293, 0.531601, 0.527908, 0.524216, 0.520524, 0.516834, 0.513149,
    0.509468, 0.505794, 0.502126, 0.498465, 0.494813, 0.491171, 0.487539, 0.483918, 0.480307,
    0.476706, 0.473117, 0.469538, 0.465971, 0.462415, 0.458870, 0.455338, 0.451816, 0.448306,
    0.444806, 0.441316, 0.437836, 0.434366, 0.430905, 0.427455, 0.424013, 0.420579, 0.417153,
    0.413734, 0.410322, 0.406917, 0.403519, 0.400126, 0.396738, 0.393355, 0.389976, 0.386600,
    0.383229, 0.379860, 0.376494, 0.373130, 0.369768, 0.366407, 0.363047, 0.359688, 0.356329,
    0.352970, 0.349610, 0.346251, 0.342890, 0.339529, 0.336166, 0.332801, 0.329435, 0.326067,
    0.322697, 0.319325, 0.315952, 0.312575, 0.309197, 0.305816, 0.302433, 0.299049, 0.295662,
    0.292275, 0.288883, 0.285490, 0.282096, 0.278701, 0.275305, 0.271909, 0.268513, 0.265118,
    0.261721, 0.258325, 0.254931, 0.251540, 0.248151, 0.244767, 0.241387, 0.238013, 0.234646,
    0.231287, 0.227937, 0.224595, 0.221265, 0.217948, 0.214648, 0.211364, 0.208100, 0.204859,
    0.201642, 0.198453, 0.195295, 0.192170, 0.189084, 0.186041, 0.183043, 0.180097, 0.177208,
    0.174381, 0.171622, 0.168938, 0.166335, 0.163821, 0.161404, 0.159092, 0.156891, 0.154808,
    0.152855, 0.151042, 0.149377, 0.147870, 0.146529, 0.145357, 0.144363, 0.143557, 0.142945,
    0.142528, 0.142303, 0.142279, 0.142453, 0.142808, 0.143351, 0.144061, 0.144923, 0.145919,
    0.147014, 0.148180, 0.149370, 0.150520, 0.151566, 0.152409, 0.152921, 0.152925, 0.152178,
    0.150328, 0.146861, 0.140956, 0.131326,
];