![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
working wavelet transform
Dependencies: CMSIS_DSP_5 include mbed
Fork of Nucleo-Heart-Rate by
vals.h
- Committer:
- xorjoep
- Date:
- 2018-06-20
- Revision:
- 2:3d6a6b9afee0
- Child:
- 3:e44f3e92cb34
File content as of revision 2:3d6a6b9afee0:
// header.h #ifndef VALS_H #define VALS_H double signal_in[2000] = { -391.26, -805.54,-583.65,-403.78,-137.07,249.79,426.31,453.96,269.72,230.09,306.79,628.94,820.95,366.54,-315.94,-96.023,777.46,1010.1,521.19,-180.5,-438.78,-372.72,-238.05,-332.33,-450,-275.44,136.68,522.1,347.4,-70.194,-434.61,-616.71,-592.8,-499.38,-336.27,-328.65,-455.95,-222.34,508.61,1044.3,627.96,-444.86,-1011.9,-612.07,-242.07,-296.62,-957.89,-936.69,264.78,520.08,178.33,-21.091,240.15,442.53,349.2,280.8,115.46,263.35,335.93,464.87,402.55,73.302,-190.68,-270.98,-114.99,-3.1289,97.584,273.89,383.7,352.5,-29.561,-453.33,18.086,778.6,1142.4,660.51,-9.9985,170.8,233.16,80.73,-117,-248.52,-84.848,-127.78,-179.02,-103.31,-59.701,-206.19,-417.03,-451.93,-391.65,-366.24,-425.98,-490.12,-739.82,-574,-113.43,81.773,241.82,295.87,461.17,657.99,763.02,505.8,103.91,-3.8848,-29.18,-11.378,-131.62,-250.52,-352.27,-561.55,-671.55,-639.47,-486.9,-320.45,-331.09,-494.22,-572.57,-398.28,-536.17,-696.59,4.2094,737.09,968.26,726.81,281.97,142.38,238.74,339.75,147.3,175.11,502.5,745.31,618.46,145.31,52.088,130.17,280.85,349.38,254.21,127.07,186.84,241.98,-64.024,388.65,900.97,745.66,238.7,-403.2,-584.2,-433.45,-253.69,-502.97,-670.84,-438.96,-179.6,-284.53,-463.53,-304.76,-170.61,-106.5,-187.2,-62.206,207.83,339.17,445.76,123,-378.66,-89.969,492.19,789.75,659.1,166.54,-95.277,-46.719,219.09,120.28,-211.06,-282.26,23.606,256.81,72.042,-145.88,-475.7,-684.72,-660.9,-452.62,-297.12,-244.16,-129.43,-190.65,-295.43,-330.6,-72.323,144.28,-114.82,-333.01,-178.99,-37.703,-514.13,-829.95,-117.99,837.7,1214.4,780.42,75.869,-323.36,-337.65,-148.77,-143.32,-93.782,90.946,372.3,571.36,475.82,365.32,203.82,69.459,-14.589,-75.42,-32.379,53.194,106.9,100.39,100.2,120.2,138.34,36.039,-9.3577,133.76,338.18,297.31,-659.29,-1054.7,71.338,545.89,679.55,608.31,143.81,42.951,-130.91,-137.04,-309.88,-240.37,-20.991,109.06,64.463,-145.93,-240.99,-392.45,-279.45,-236.13,-146.6,-99.419,-28.117,71.427,164.45,217.04,92.568,114.1,254.41,563.93,678.29,43.797,-752.33,-601.82,92.777,445.73,270.55,-97.234,-322.3,-394.88,-354.93,-542.84,-671.31,-230.75,-116.88,-330.44,-332.97,-380.83,-129.24,-12.336,-125.19,-226.78,-273.05,-152.94,-20.856,173.41,181.88,198.85,228.61,234.69,389.22,596.16,243.94,-344.8,71.094,990,1056,296.03,88.509,190.65,305.42,176.35,-66.926,282.32,496.69,361.35,-244.64,-1016.3,-1295.9,-667.01,-253.65,131.75,679.91,730.05,733.86,342.55,271.45,299.9,557.55,735.85,160.15,-368.72,-173.3,341.31,393.85,289.92,15.081,-160.3,-114.18,-2.2174,-201.98,-380.15,-276.91,-1.1158,-83.668,-758.59,-1161.7,-1133.6,-587.95,-204.94,-265.73,-500.96,-573.03,-408.38,-108.44,233.63,114.97,-319.13,-707.74,-583.41,-134.77,110.49,-127.36,-707.39,-583.33,243.8,847.92,1016.9,664.15,256.28,132.6,84.481,-4.1047,-7.6579,246.48,537.19,646.84,403.23,231.71,142.62,-20.62,3.0013,91.302,109.27,-13.683,-72.914,142.71,298.36,99.628,-140.36,-158.6,69.93,325.07,376.31,274.1,-214.85,-605.84,-70.233,705.21,1048.7,982.97,557.74,74.757,-232.77,-265.43,-323.92,-442.16,-293.68,-224.94,-401.08,-635.96,-882.29,-1000.6,-901.05,-648.4,-429.09,-238.4,-17.709,180.91,243.52,85.089,-189.29,-365.64,-277.72,-11.579,202.72,-201.84,-901.76,-556.61,442.29,1144.7,1352.3,1005.7,451,81.909,105.27,18.234,13.947,406.78,778.75,813,349.74,-1.8774,-74.616,-0.59622,83.035,70.232,19.551,-60.688,-53.465,-69.098,-118.83,-183.93,70.508,32.899,-601.17,-340.58,378.49,635.79,222.13,-425.34,-250.51,-0.99959,19.199,-219.02,-331.4,-266.78,-495.94,-549.36,-537.5,-265.97,-135.53,-302.93,-263.11,-33.765,34.454,16.698,89.082,-34.598,-30.215,-226.18,-378.92,281.82,1156.6,1596.1,1319.4,652.85,127.19,-146.99,-18.76,41.725,-129.02,-70.415,238.67,390.87,94.308,-208.2,-442.88,-566.93,-600.96,-674.32,-637.74,-546.73,-364.69,-238.09,-216.8,-199.05,-240.93,-461.73,-647.48,-587.93,-325.6,37.024,289.87,5.7407,-472.02,-195.5,389.04,744.97,730.64,472.4,279.44,182.9,306.98,328.94,229.51,187.25,311.71,515.98,379.9,42.755,-176.61,-140.65,-3.8613,9.629,-12.163,-10.026,64.37,153.68,166.49,151.1,142.17,61.412,-103.68,-172.25,-75.404,100.97,168.55,-17.416,-558.45,-796.55,-274.84,287.63,532.45,408.22,92.375,-135.85,-237.07,-197.81,-263.05,-387.49,-274.4,62.167,284.97,107.05,-101.38,-117.81,-30.369,49.124,-10.528,-71.106,-94.898,-29.911,36.742,78.326,104.16,182.58,297.66,318.32,316.84,234.56,229.33,0.016815,-599.8,-402.44,384.16,331.97,18.317,-229.51,-490.22,-445.55,-460.17,-491.22,-465.02,-213.23,137.53,286.65,118.05,-120.72,-252.25,-269.88,-120.79,-94.528,-144.07,-88.733,21.96,115.85,249.83,268.23,284.41,275.9,203.9,151.39,126.84,141.19,-260.28,-563.27,84.335,872.83,1107.3,870.34,351.65,-6.8279,-109.28,21.994,-114.95,-258.27,47.386,490.15,664.35,318.75,-6.8591,-170.48,-302.98,-383.03,-333.75,-297.89,-353.31,-315.43,-242.72,-173.22,-171.99,-218.75,-217.26,-152.88,43.03,-267.9,-925.03,-612.17,159.45,418.28,175.32,-9.1186,-104.98,-381.46,-421.09,-134.14,510.4,881.39,641.42,317.82,71.725,-28.565,-5.3313,82.403,146.31,210.09,300.69,385.97,336.28,109.25,-98.574,-173.12,-187.32,-207.34,-16.588,-155.22,-646.59,-391.23,309.14,757.38,636.57,136.13,-181.54,-222.68,-66.268,-143.89,-109.83,149.07,1.5156,-337.54,-470.42,-388.83,-281.76,-284.6,-292.6,-241.56,-177.54,-134.12,-190,-180.89,-119.4,-62.042,11.333,43.393,85.19,159.05,268.79,-31.37,-584.76,-445.81,250.03,834.8,1124.9,799.75,249.86,98.932,44.261,-113.16,-99.018,289.83,464.94,162.77,-165.66,-239.2,-174.89,-159.21,-119.75,-106.69,-67.41,-53.653,-53.076,-58.274,-97.814,-46.192,-31.685,-100.51,82.789,307.48,271.48,-153.34,-873.54,-559.08,228.43,338.71,338.44,187.3,307.36,471.13,47.989,-82.578,127.58,207.82,116.37,-95.111,-333.51,-466.77,-412.68,-385.7,-409.83,-464.5,-387.67,-270.84,-220.09,-166.54,-95.954,-31.965,-9.229,51.485,93.049,140.46,136.74,121.71,-240.23,-566.58,14.458,780.24,1135.7,990.69,578.42,306.85,183.5,169.94,-88.403,167.63,648.19,202.14,-142.52,-335.37,-379.87,-173.68,-130.98,-32.596,-22.62,109.1,65.954,17.148,40.867,-75.177,-87.592,-145.38,-144.07,-140.6,-556.7,-952.04,-362.31,319.27,552.34,251.66,-200.94,-343.78,-314.32,112.17,91.272,53.131,319.93,614.25,481.06,-291.93,-499.65,-444.41,-513.22,-395.88,-304.18,-198.36,-103.27,-183.43,-269.81,-331.56,-386.78,-156.7,37.207,21.184,568.31,1176.9,1237.4,867.99,298.74,183.1,343.27,599.91,646.3,400.97,262.72,371.92,602.66,423.43,26.829,-242.85,-413.38,-491.88,-522.63,-378.78,-266.38,-260.4,-186.09,-171.57,-278.48,-733.05,-1055.3,-738.77,-464.04,-439.4,-831.99,-881.12,-64.064,491.54,561.72,146.73,-215.83,-351.57,-272.71,75.176,102.44,-61.54,-84.954,260.02,483.26,370.72,180.23,22.944,-30.227,38.651,123.57,101.85,123.32,167.03,195.25,227.43,279.68,291.06,341.24,276.2,146.32,64.051,-11.004,15.764,51.805,-5.7649,-457.36,-672.76,-49.669,742.48,1139.6,912.82,392.1,-47.315,-292.83,-202.33,-125.41,-144.15,-126.78,24.182,214.87,80.854,-178.81,-279.9,-306.2,-291.18,-224.23,-235.49,-291.15,-283.32,-220.97,-140.01,-71.269,-19.49,59.737,85.705,4.5865,-114.92,-150.87,-74.601,39.824,146.74,-72.513,-609.34,-625.94,-20.688,516.12,777.35,634.41,338.2,27.348,-142.29,-121.77,-181.23,-232.08,-192.58,111.17,274.8,218.66,156.25,13.944,8.3899,114.36,229.21,269.22,201.15,106.13,28.817,-33.445,-97.885,-42.766,-15.813,-163.43,-234.48,-321.09,-364.86,-445.47,-799.5,-1128.5,-740.07,331.96,892.6,765.39,246.61,-215.39,-362.52,-257.6,-21.744,-206.85,-252.87,30.924,414.76,615.37,398.26,172.18,2.8224,-16.522,86.905,157.76,130.52,177.07,203.64,200.9,268.22,233.38,165.67,102.94,50.294,-18.872,-35.711,33.712,-92.787,-645.08,-598.26,277.24,815.04,767.49,281.47,-137.39,-263.87,-46.32,179.75,-52.178,-240.86,-85.9,288.9,300.33,-64.655,-362.61,-545.65,-518.81,-397.47,-350.91,-333.05,-254.42,-107.07,68.987,82.93,-118.27,-347.06,-358.2,-200.09,61.187,85.995,-527.29,-821.9,-266.63,327.98,313.56,-42.352,-23.437,251.75,536.77,602.84,556.3,740.94,1010.3,1132.4,752.03,345.52,81.947,-69.323,-53.972,-46.067,31.466,48.726,157.8,165.75,108.47,18.695,-307.96,-507.51,-419.78,-323.49,-334.13,-732.32,-1016.8,-362.43,296.16,452.01,136,-284.05,-433.72,-497.61,-305.31,-202.91,-293.52,-369.42,-178.66,164.64,170.92,-14.925,-214.58,-319.58,-259.49,-179.37,-173.43,-151.56,-51.488,47.413,170.55,241.92,285.85,377.9,389.2,305.86,133.72,20.337,93.424,129.69,-287.35,-424.45,227.12,913.13,1021.1,500.47,249.22,109.86,60.355,69.383,-158.36,-171.21,-10.108,298.48,242.88,76.715,-85.482,-219.87,-155.5,-112.29,-83.699,-140.51,-74.604,-35.422,-28.252,-46.564,-44.426,-42.376,9.5071,13.562,-56.894,-92.648,-112.84,22.98,85.82,-4.5125,-488.13,-712.84,-224.67,260.28,558.58,435.08,88.431,-95.104,-51.329,258.69,221.18,-35.183,101.98,216.32,162.61,36.611,-244.04,-435.43,-464.33,-399.76,-440.48,-520.28,-401.32,-303.88,-227.2,-174.62,-127.19,-56.363,-137.23,-150.48,-156.76,-99.022,23.753,116.32,-65.647,-520.1,370.93,1299.1,868.87,577.77,192.81,39.665,262.23,155.27,-43.189,-39.485,291.46,550.21,459.41,88.887,-153.2,-177.75,-105.82,-46.123,-42.936,26.228,105.97,158.04,120.08,145.35,164.44,86.53,-9.4866,-28.288,-16.873,-7.9581,44.044,-397.84,-945.66,-532.13,183.2,478.97,356.37,38.418,-134.37,-213.54,-115.77,-243.13,-441.55,-344.12,8.1649,281.61,122.9,-46.746,-213.66,-318.87,-263.19,-238.99,-394.92,-530.84,-605.1,-610.99,-349.79,-82.184,98.067,215.36,417.96,566.28,428.83,883.21,1416.1,769.99,281.16,54.242,-34.628,290.41,399.52,465.05,664.42,808.53,249.68,-42.988,-304.04,-487.34,-370.5,-522.77,-414.97,-386.72,-170.1,-158.25,-168.11,-96.644,-110.39,-198.4,-456.46,-554.69,-521.83,-299.63,-345.22,-726.07,-967.77,-307.81,527.4,765.75,587.63,147,-288.12,-379.93,-26.598,-90.045,-120.88,94.589,297.36,263.7,-84.48,-73.821,-3.3696,63.96,44.063,60.458,136.55,161.95,225.26,131.52,125.25,171.36,186.84,80.371,-39.796,-66.931,79.411,275.12,194.86,-284.94,-515.25,30.293,611.22,951.18,806.44,397.51,30.249,-171.11,-77.369,-60.187,-169.36,-290.19,-84.553,206.06,174.31,-34.108,-211.77,-318.21,-264.32,-152.73,-179.93,-224.11,-240.5,-143.33,-26.649,16.728,34.056,65.619,137.18,119.71,3.9645,-32.76,-14.813,88.206,-76.736,-365.65,106.81,579.55,635.27,369,-32.437,-109.94,-253.95,-331.46,-527.42,-568.5,-264.46,-50.882,9.2379,-234.92,-411.21,-455.31,-449.99,-373.54,-320.41,-290.19,-190.73,-90.546,-28.926,67.571,150.94,247.05,281.37,268.36,264.73,320.14,306.54,-101.9,-395.08,239.89,1034.1,1265.5,717.13,45.561,228.18,411.29,259.73,73.511,315.65,481.24,188.82,-47.769,-219.72,-152.44,-166.57,-125.54,-165.46,-279.02,-260.62,-152.94,26.288,-18.295,-144.54,-371.17,-491.21,-462.33,-369.46,-252.56,-553.56,-325.38,648.84,623.86,219.93,-73.438,-312.95,-95.223,40.459,-44.034,-236.47,17.554,142.78,4.383,-177.5,-392.62,-434.68,-595.47,-668.81,-591.28,-231.1,166.27,483.02,605.52,452.82,291.46,267.96,437,656.95,494.75,-101.87,-51.059,549.09,837.8,587.11,131.57,2.0238,-19.104,97.022,262.82,133.19,-16.108,125.48,213.84,-144.6,-467.74,-617.26,-605.36,-433.04,-443.01,-398.85,-277.31,-180.36,-158.13,-107.45,-31.379,-78.286,-229.08,-328.95,-212.03,-94.096,32.227,-315.47,-790.48,-401.19,629.98,1011.5,483.04,295.76,42.793,-57.3,129.94,13.093,-33.22,-72.713,239.02,381.63,165.31,-36.772,-241.63,-206.2,-154.42,-126.25,-120.98,-55.534,12.925,68.191,137.15,109.58,100.98,151.35,175.91,76.988,-22.018,-66.92,-45.032,67.353,191.7,-26.334,-582.73,-512.65,166.38,829.44,901.78,328.86,84.099,-61.862,-114.07,-99.151,-246.03,-162.46,64.044,313.24,213.11,43.676,-121.21,-224.35,-140.17,-139.98,-138.74,-160.92,-105.72,-56.444,-58.991,-60.67,67.308,62.656,-134.46,-182.06,-175.57,-114.5,-64.544,-347.86,-619.2,-55.475,722.47,1105,1044.4,587.81,163.07,-189.79,-271.87,-322.51,-481.6,-525.88,-338.37,-42.274,14.511,-157.3,-358.2,-414.16,-424.64,-358.61,-311.36,-333.18,-291.94,-162.1,-51.721,24.689,130.43,139.1,155.35,166.6,174.25,156.98,88.911,94.802,-223.56,-436.77,366.25,1194.4,1403.5,1110,451.88,81.759,29.508,201.49,22.615,-272.82,-141.12,219.89,355.39,-75.039,-325.27,-271.85,-82.152,14.422,-31.781,-69.619,-98.246,21.45,112.01,46.685,-117.67,-274.52,-503.77,-561.39,-442,-621.43,-934.73,-537.67,251.85,497.69,237.44,-134.81,-232.83,-122.53,59.199,18.892,-177.32,-228.71,-111.12,130.07,134.75,9.2513,70.634,243.81,405.29,467.81,363.52,314.33,386.57,495.36,470.61,307.59,230.77,166.07,182.71,266.22,394.06,148.63,-497.3,-443.87,73.879,396.82,362.6,-51.924,-407.36,-706.13,-642.03,-479.43,-342.29,62.3,216.37,30.381,-319.59,-418.97,-221.93,-163.99,-224.98,-181.31,-163.26,-203.49,-220.55,-193.15,-148.8,-183.67,-248.65,-274.66,-194.53,-52.767,-150.75,-603.3,-472.3,571.15,1131.5,666.96,332.87,74.053,-34.151,209.43,194.44,136.52,17.82,263.26,518.92,347.74,131.46,-7.3069,-22.616,-25.035,-14.812,-39.955,-10.612,-17.931,21.388,53.253,69.167,64.181,74.65,221.05,163.27,-6.6394,-101.57,-22.346,81.611,-128.59,-589.76,-599.04,-46.818,365.39,545.34,255.12,-80.096,-8.6018,75.149,74.959,57.41,268.95,520.15,521.13,264.5,-47.396,-235.89,-441.29,-487.87,-454.99,-564.84,-456.66,-442.98,-511.51,-406.99,-329.69,-158.36,-180.89,-174.32,-164.91,-189.48,-158.66,-176.08,-286.49,-709.3,-496.17,447.89,1117.3,1129.9,654.09,206.07,70.591,219.74,332.89,143.43,65.777,341.2,582.18,596.41,280.77,-81.569,-153.44,-153.08,-81.104,-17.477,-63.74,-45.359,-21.013,-2.1166,26.024,53.551,-14.713,-101.26,-80.827,1.8318,156.51,274.84,0.070499,-680.12,-564,276.71,734.22,627.08,88.041,-335.79,-637.34,-623.49,-528.67,-542.27,51.597,707.42,737.24,462.83,238.01,-22.362,-154.54,-282.41,-449.84,-483.03,-432.62,-300.5,-170.58,-73.36,-89.285,-61.275,-18.606,103.34,-12.555,-428.27,-371.97,272.05,825.11,766.19,375.66,22.743,-55.376,77.304,286.9,203.12,-102.6,-157.23,83.401,321.28,142.02,-80.467,-207.71,-230.07,-156.24,-118.96,-84.355,-73.862,-32.457,-8.5673,-50.27,-119.82,-107.48,-64.875,-99.954,-198.09,-195.47,-148.15,-59.519,34.094,-89.404,-641.86,-924.17,-297.96,438.27,895.34,793.79,362.76,-14.306,-278.02,-111.76,-66.677,-167.33,65.422,379.91,421.24,193.76,-40.055,-224.66,-171.59,5.869,-6.1354,-14.864,0.3388,27.095,18.513,68.781,125.17,132.56,193.32,106.21,-1.1378,-31.667,58.074,140.32,35.521,-382.07,-613.27,-174.35,329.24,596.7,512.42,205.31,-82.33,-159.4,-29.121,26.267,48.901,136.34,428.73,599.76,426.63,116.06,-149.06,-250.86,-282.42,-388.88,-549.02,-533.97,-475.36,-435.74,-392.71,-352.79,-283.19,-211.1,-181.19,-175.91,-160.59,-247.1,-245.13,-232.57,-180.29,-455.07,-654.68,234.61,1094,1259.2,832.87,210.95,3.7666,75.736,369.44,273.54,5.5217,133.27,427.95,612.57,232.67,-188.85,-312.2,-243.22,-77.946,-11.128,27.597,108.38,249.07,247.26,204.12,138.51,-3.7175,-141.51,-192.61,-282.24,-419.41,-676.3,-1141.2,-1129.8,-217.71,697.53,816.02,520.26,329.49,333.42,409.22,570.44,348.52,217.46,421.61,611.95,663.76,238.37,-47.299,-233,-211.61,-143.57,-291.9,-306.79,-286.94,-219.95,-194.58,-186.81,-172.68,-232.37,-279.02,-117.18,-5.3395,-1.8738,-35.263,-333.72,-983.29,-1252.7,-594.43,110.46,483.01,463.58,183.84,-167.68,-401.71,-234.37,-111.08,-82.347,-161.93,-21.377,318.23,316.52,128.15,-171.34,-305.62,-178.53,-30.514,-13.125,71.73,254.01,268.12,189.31,190.34,263.57,279.68,202.32,80.269,34.508,53.889,249.14,384.22,205.16,-292.43 }; #endif