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 SPRING_R: [f32; 64] = [
    1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
    1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
    1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
];
pub(crate) static SPRING_G: [f32; 64] = [
    0.,
    0.01587301587301587,
    0.03174603174603174,
    0.04761904761904762,
    0.06349206349206349,
    0.07936507936507936,
    0.09523809523809523,
    0.1111111111111111,
    0.126984126984127,
    0.1428571428571428,
    0.1587301587301587,
    0.1746031746031746,
    0.1904761904761905,
    0.2063492063492063,
    0.2222222222222222,
    0.2380952380952381,
    0.253968253968254,
    0.2698412698412698,
    0.2857142857142857,
    0.3015873015873016,
    0.3174603174603174,
    0.3333333333333333,
    0.3492063492063492,
    0.3650793650793651,
    0.3809523809523809,
    0.3968253968253968,
    0.4126984126984127,
    0.4285714285714285,
    0.4444444444444444,
    0.4603174603174603,
    0.4761904761904762,
    0.492063492063492,
    0.5079365079365079,
    0.5238095238095238,
    0.5396825396825397,
    0.5555555555555556,
    0.5714285714285714,
    0.5873015873015873,
    0.6031746031746031,
    0.6190476190476191,
    0.6349206349206349,
    0.6507936507936508,
    0.6666666666666666,
    0.6825396825396826,
    0.6984126984126984,
    0.7142857142857143,
    0.7301587301587301,
    0.746031746031746,
    0.7619047619047619,
    0.7777777777777778,
    0.7936507936507936,
    0.8095238095238095,
    0.8253968253968254,
    0.8412698412698413,
    0.8571428571428571,
    0.873015873015873,
    0.8888888888888888,
    0.9047619047619048,
    0.9206349206349206,
    0.9365079365079365,
    0.9523809523809523,
    0.9682539682539683,
    0.9841269841269841,
    1.,
];
pub(crate) static SPRING_B: [f32; 64] = [
    1.,
    0.9841269841269842,
    0.9682539682539683,
    0.9523809523809523,
    0.9365079365079365,
    0.9206349206349207,
    0.9047619047619048,
    0.8888888888888888,
    0.873015873015873,
    0.8571428571428572,
    0.8412698412698413,
    0.8253968253968254,
    0.8095238095238095,
    0.7936507936507937,
    0.7777777777777778,
    0.7619047619047619,
    0.746031746031746,
    0.7301587301587302,
    0.7142857142857143,
    0.6984126984126984,
    0.6825396825396826,
    0.6666666666666667,
    0.6507936507936508,
    0.6349206349206349,
    0.6190476190476191,
    0.6031746031746033,
    0.5873015873015873,
    0.5714285714285714,
    0.5555555555555556,
    0.5396825396825398,
    0.5238095238095238,
    0.5079365079365079,
    0.4920634920634921,
    0.4761904761904762,
    0.4603174603174603,
    0.4444444444444444,
    0.4285714285714286,
    0.4126984126984127,
    0.3968253968253969,
    0.3809523809523809,
    0.3650793650793651,
    0.3492063492063492,
    0.3333333333333334,
    0.3174603174603174,
    0.3015873015873016,
    0.2857142857142857,
    0.2698412698412699,
    0.253968253968254,
    0.2380952380952381,
    0.2222222222222222,
    0.2063492063492064,
    0.1904761904761905,
    0.1746031746031746,
    0.1587301587301587,
    0.1428571428571429,
    0.126984126984127,
    0.1111111111111112,
    0.09523809523809523,
    0.07936507936507942,
    0.06349206349206349,
    0.04761904761904767,
    0.03174603174603174,
    0.01587301587301593,
    0.,
];