diff --git a/.gitignore b/.gitignore index 87abe967b7..7461b83f53 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ peacock_run_exe_tmp.i *.py *.pyc !python/**/*.py +!doc/**/*.py +!test/**/*.py **/.ipynb_checkpoints # Allow certain files in gold directories @@ -53,4 +55,4 @@ doc/doxygen/html !doc/content/media/**/*.png # Allow CSV in data directory -!tests/data/**/*.csv +!test/tests/data/**/*.csv diff --git a/test/tests/functions/baseline_correction/errors.i b/test/tests/functions/baseline_correction/errors.i new file mode 100644 index 0000000000..95a998cf9d --- /dev/null +++ b/test/tests/functions/baseline_correction/errors.i @@ -0,0 +1,28 @@ +[Mesh] + type = GeneratedMesh + dim = 1 +[] + +[Problem] + solve = false +[] + +[Functions] + [function] + type = PiecewiseLinear + x = '0 1' + y = '0 1' + [] + [bad_function] + type = ConstantFunction + [] + [error_test] + type = BaselineCorrection + function = function + disp_fit_order = 10 + [] +[] + +[Executioner] + type = Steady +[] diff --git a/test/tests/functions/baseline_correction/gold/corrected_accel.csv b/test/tests/functions/baseline_correction/gold/corrected_accel.csv new file mode 100644 index 0000000000..a30427e6d8 --- /dev/null +++ b/test/tests/functions/baseline_correction/gold/corrected_accel.csv @@ -0,0 +1,1002 @@ +x,y +-5,-125.16407076269 +-4.99,-25.082065800974 +-4.98,73.434053802817 +-4.97,168.84826586939 +-4.96,259.67338467608 +-4.95,344.49451492976 +-4.94,421.99136567644 +-4.93,490.95907224392 +-4.92,550.32719784305 +-4.91,599.17661516095 +-4.9,636.75400171344 +-4.89,662.48372035622 +-4.88,675.97689759215 +-4.87,677.03755650418 +-4.86,665.66570759406 +-4.85,642.05734878234 +-4.84,606.60137456966 +-4.83,559.87344310381 +-4.82,502.6268978725 +-4.81,435.78088719207 +-4.8,360.40586885519 +-4.79,277.70672853755 +-4.78,189.00377819666 +-4.77,95.711934129128 +-4.76,-0.68159693887667 +-4.75,-98.640771824562 +-4.74,-196.60493504142 +-4.73,-293.01343110296 +-4.72,-386.33021682637 +-4.71,-475.0680854855 +-4.7,-557.81212078372 +-4.69,-633.24201076353 +-4.68,-700.15286974925 +-4.67,-757.47423994821 +-4.66,-804.28697304405 +-4.65,-839.83772554907 +-4.64,-863.55083931549 +-4.63,-875.03741984265 +-4.62,-874.10146921002 +-4.61,-860.74297691584 +-4.6,-835.15791987715 +-4.59,-797.73517159111 +-4.58,-749.05036920201 +-4.57,-689.85683519403 +-4.56,-621.07369688005 +-4.55,-543.77139104922 +-4.54,-459.15478237373 +-4.53,-368.54416180759 +-4.52,-273.35442464392 +-4.51,-175.07275660537 +-4.5,-75.235179871245 +-4.49,24.597671075451 +-4.48,122.86516175172 +-4.47,218.03126997825 +-4.46,308.6088100324 +-4.45,393.18288662104 +-4.44,470.43320879017 +-4.43,539.15491186758 +-4.42,598.27755906414 +-4.41,646.88202306697 +-4.4,684.21498139188 +-4.39,709.70079689457 +-4.38,722.9505960779 +-4.37,723.76840202483 +-4.36,712.1542252371 +-4.35,688.30406363526 +-4.34,652.60681171995 +-4.33,605.63812763897 +-4.32,548.15135488001 +-4.31,481.06564175943 +-4.3,405.45144606988 +-4.29,322.51365348708 +-4.28,233.5725759685 +-4.27,140.04312981078 +-4.26,43.412521740069 +-4.25,-54.783205060821 +-4.24,-152.9833951054 +-4.23,-249.62739290717 +-4.22,-343.17915528331 +-4.21,-432.15147550769 +-4.2,-515.12943728367 +-4.19,-590.79272865376 +-4.18,-657.93646394224 +-4.17,-715.49018535649 +-4.16,-762.53474458012 +-4.15,-798.31679812545 +-4.14,-822.26068784467 +-4.13,-833.97751923715 +-4.12,-833.27129438235 +-4.11,-820.1420027785 +-4.1,-794.78562134266 +-4.09,-757.59102357197 +-4.08,-709.13384661072 +-4.07,-650.16741294311 +-4.06,-581.610849882 +-4.05,-504.53459421654 +-4.04,-420.14351061894 +-4.03,-329.75789004318 +-4.02,-234.79262778241 +-4.01,-136.73490955926 +-4,-37.120757553047 +-3.99,62.489193753235 +-3.98,160.53430987658 +-3.97,255.47856863769 +-3.96,345.83478431391 +-3.95,430.1880616121 +-3.94,507.21810957829 +-3.93,575.72006354025 +-3.92,634.62348670885 +-3.91,683.00925177121 +-3.9,720.12403624315 +-3.89,745.39220298036 +-3.88,758.4248784857 +-3.87,759.02608584213 +-3.86,747.1958355514 +-3.85,723.13012553405 +-3.84,687.21785029072 +-3.83,640.03466796921 +-3.82,582.33392205721 +-3.81,515.03476087108 +-3.8,439.20764220348 +-3.79,356.05745173011 +-3.78,266.90450140845 +-3.77,173.16370753515 +-3.76,76.322276836345 +-3.75,-22.083747505147 +-3.74,-120.49371000284 +-3.73,-217.34695517023 +-3.72,-311.10743982451 +-3.71,-400.28795723953 +-3.7,-483.47359111866 +-3.69,-559.3440295044 +-3.68,-626.69438672106 +-3.67,-684.45420497598 +-3.66,-731.7043359528 +-3.65,-767.69143616382 +-3.64,-791.83984746125 +-3.63,-803.76067534444 +-3.62,-803.25792189285 +-3.61,-790.33157660474 +-3.6,-765.17761639713 +-3.59,-728.18491476718 +-3.58,-679.92910885918 +-3.57,-621.16352115732 +-3.56,-552.80727897448 +-3.55,-475.93081909979 +-3.54,-391.73900620546 +-3.53,-301.55213124549 +-3.52,-206.785089513 +-3.51,-108.92506673064 +-3.5,-9.5080850777349 +-3.49,89.90522096274 +-3.48,187.75421690777 +-3.47,282.50288057806 +-3.46,372.66402625095 +-3.45,456.82275863332 +-3.44,533.65878677116 +-3.43,601.96724599228 +-3.42,660.67769950753 +-3.41,708.87102000403 +-3.4,745.7938849976 +-3.39,770.87065734394 +-3.38,783.7124635459 +-3.37,784.12332668644 +-3.36,772.10325726731 +-3.35,747.84825320905 +-3.34,711.74720901231 +-3.33,664.37578282488 +-3.32,606.48731813445 +-3.31,539.00096325738 +-3.3,462.98717598633 +-3.29,379.650841997 +-3.28,290.31227324688 +-3.27,196.3863860326 +-3.26,99.360387080309 +-3.25,0.77031957281441 +-3.24,-97.823161003379 +-3.23,-194.85939916178 +-3.22,-288.80235171959 +-3.21,-378.16481195064 +-3.2,-461.53186355831 +-3.19,-537.58319458511 +-3.18,-605.11391935533 +-3.17,-663.05358007632 +-3.16,-710.48302843171 +-3.15,-746.64892093382 +-3.14,-770.97559943485 +-3.13,-783.07416943414 +-3.12,-782.74863301117 +-3.11,-769.99897966417 +-3.1,-745.02118631019 +-3.09,-708.20412644637 +-3.08,-660.12343721702 +-3.07,-601.53244110631 +-3.06,-533.35026542712 +-3.05,-456.64734696859 +-3.04,-372.62855040293 +-3.03,-282.61416668414 +-3.02,-188.01909110533 +-3.01,-90.330509389164 +-3,8.9155562850568 +-2.99,108.15847143433 +-2.98,205.83760157565 +-2.97,300.41692452973 +-2.96,390.4092545739 +-2.95,474.39969641504 +-2.94,551.06795909915 +-2.93,619.20917795404 +-2.92,677.75291619054 +-2.91,725.78004649579 +-2.9,762.5372463856 +-2.89,787.44887871567 +-2.88,800.12606998886 +-2.87,800.37284328812 +-2.86,788.1892091152 +-2.85,763.77116539064 +-2.84,727.50760661509 +-2.83,679.97419093634 +-2.82,621.92426184209 +-2.81,554.27696764869 +-2.8,478.1027661488 +-2.79,394.60654301812 +-2.78,305.10861021413 +-2.77,211.02388403349 +-2.76,113.83957120232 +-2.75,15.091714903436 +-2.74,-83.659029376655 +-2.73,-180.85200615147 +-2.72,-274.95117223819 +-2.71,-364.46932091067 +-2.7,-447.99153587227 +-2.69,-524.19750516552 +-2.68,-591.88234311469 +-2.67,-649.97559192714 +-2.66,-697.55810328651 +-2.65,-733.8765337051 +-2.64,-758.35522503512 +-2.63,-770.60528277591 +-2.62,-770.43070900694 +-2.61,-757.83149322645 +-2.6,-733.00361235149 +-2.59,-696.3359398792 +-2.58,-648.40411295388 +-2.57,-589.96145405971 +-2.56,-521.92709050957 +-2.55,-445.3714590926 +-2.54,-361.499424481 +-2.53,-271.63127762877 +-2.52,-177.18191382904 +-2.51,-79.638518804456 +-2.5,19.462885265678 +-2.49,118.56166389836 +-2.48,216.09718261058 +-2.47,310.53341922305 +-2.46,400.38318801311 +-2.45,484.23159368764 +-2.44,560.75834529262 +-2.43,628.75857815588 +-2.42,687.16185548824 +-2.41,735.04904997684 +-2.4,771.6668391375 +-2.39,796.43958582592 +-2.38,808.97841654493 +-2.37,809.08735437752 +-2.36,796.76640982542 +-2.35,772.21158080917 +-2.34,735.81176182942 +-2.33,688.14261103397 +-2.32,629.9574719105 +-2.31,562.17549277537 +-2.3,485.86713142125 +-2.29,402.23727352382 +-2.28,312.60623104059 +-2.27,218.38892026818 +-2.26,121.07254793274 +-2.25,22.193157217074 +-2.24,-76.688596392311 +-2.23,-174.01205740892 +-2.22,-268.24118264995 +-2.21,-357.88876538925 +-2.2,-441.53988933019 +-2.19,-517.87424251526 +-2.18,-585.68693926879 +-2.17,-643.9075217981 +-2.16,-691.61684178683 +-2.15,-728.06155574729 +-2.14,-752.66600553169 +-2.13,-765.04129663937 +-2.12,-764.9914311498 +-2.11,-752.51639856122 +-2.1,-727.81217579067 +-2.09,-691.2676363353 +-2.08,-643.45841733941 +-2.07,-585.13784128717 +-2.06,-517.22503549147 +-2.05,-440.79043674145 +-2.04,-357.03890970931 +-2.03,-267.29074534904 +-2.02,-172.96083895377 +-2.01,-75.53637624616 +-2,23.446620594495 +-1.99,122.42751708519 +-1.98,219.84567874293 +-1.97,314.1650833884 +-1.96,403.89854529895 +-1.95,487.63116918147 +-1.94,564.04266408193 +-1.93,631.92816532816 +-1.92,690.21723613099 +-1.91,737.99074917756 +-1.9,774.49538198367 +-1.89,799.15549740504 +-1.88,811.5822219445 +-1.87,811.57957868501 +-1.86,799.14757812834 +-1.85,774.48221819501 +-1.84,737.97239338567 +-1.83,690.19376184811 +-1.82,631.89966707003 +-1.81,564.00925736779 +-1.8,487.59299053404 +-1.79,403.85575224447 +-1.78,314.11785445659 +-1.77,219.79421346703 +-1.76,122.37203600192 +-1.75,23.387365244088 +-1.74,-75.599143319981 +-1.73,-173.02683420379 +-1.72,-267.35966422452 +-1.71,-357.11042665603 +-1.7,-440.86420520169 +-1.69,-517.300687904 +-1.68,-585.21498908726 +-1.67,-643.53665095882 +-1.66,-691.3465252023 +-1.65,-727.89126833003 +-1.64,-752.5952221942 +-1.63,-765.06949229417 +-1.62,-765.11808070938 +-1.61,-752.7409769381 +-1.6,-728.13415789736 +-1.59,-691.68649708431 +-1.58,-643.97363164323 +-1.57,-585.74888405833 +-1.56,-517.93138164246 +-1.55,-441.59156118478 +-1.54,-357.93428735748 +-1.53,-268.27985111456 +-1.52,-174.04314774916 +-1.51,-76.711362983911 +-1.5,22.179481001868 +-1.49,121.06874972519 +-1.48,218.39580870304 +-1.47,312.62463575612 +-1.46,402.26804516178 +-1.45,485.91114162689 +-1.44,562.23363419745 +-1.43,630.03065820126 +-1.42,688.23177684917 +-1.41,735.9178628283 +-1.4,772.33559365448 +-1.39,796.90933218339 +-1.38,809.2502049179 +-1.37,809.16223494096 +-1.36,796.64543275432 +-1.35,771.89579627851 +-1.34,735.30222001418 +-1.33,687.44036210913 +-1.32,629.06356605105 +-1.31,561.0909801563 +-1.3,484.59306221753 +-1.29,400.77469791044 +-1.28,310.95619919252 +-1.27,216.5524823604 +-1.26,119.05075414024 +-1.25,19.987057714837 +-1.24,-79.077951429308 +-1.23,-176.5836178057 +-1.22,-270.99389823153 +-1.21,-360.82158598064 +-1.2,-444.65176475641 +-1.19,-521.16412260135 +-1.18,-589.15377383974 +-1.17,-647.55026067894 +-1.16,-695.43443480258 +-1.15,-732.05295272296 +-1.14,-756.8301562923 +-1.13,-769.37715100994 +-1.12,-769.49793895534 +-1.11,-757.19250962675 +-1.1,-732.65683994121 +-1.09,-696.27980339586 +-1.08,-648.637037135 +-1.07,-590.48186364281 +-1.06,-522.73341023217 +-1.05,-446.46211369222 +-1.04,-362.87283869517 +-1.03,-273.285876195 +-1.02,-179.11612148484 +-1.01,-81.850760287355 +-1,16.974185218161 +-0.99,115.79808054871 +-0.98,213.06029122128 +-0.97,307.22479505658 +-0.96,396.80440633195 +-0.95,480.38422975426 +-0.94,556.64397436952 +-0.93,624.37877550552 +-0.92,682.51819637311 +-0.91,730.14310965942 +-0.9,766.50019288027 +-0.89,791.01380889135 +-0.88,803.29508419551 +-0.87,803.14804187572 +-0.86,790.57269243371 +-0.85,765.76503379003 +-0.84,729.11396044533 +-0.83,681.1951305474 +-0.82,622.76188758392 +-0.81,554.73337987126 +-0.8,478.18006520208 +-0.79,394.30682925206 +-0.78,304.43398397872 +-0.77,209.97644567866 +-0.76,112.42142107805 +-0.75,13.304953359686 +-0.74,-85.81230198993 +-0.73,-183.3696894843 +-0.72,-277.83116594061 +-0.71,-367.70952463273 +-0.7,-451.58984926401 +-0.69,-528.15182787695 +-0.68,-596.19057479587 +-0.67,-654.63563222811 +-0.66,-702.56785185729 +-0.65,-739.23389019573 +-0.64,-764.05808909562 +-0.63,-776.65155405633 +-0.62,-776.81828715731 +-0.61,-764.5582778968 +-0.6,-740.06750319185 +-0.59,-703.7348365396 +-0.58,-656.13591508434 +-0.57,-598.02406131027 +-0.56,-530.31840253025 +-0.55,-454.08937553343 +-0.54,-370.541844992 +-0.53,-280.99610185997 +-0.52,-186.86704143046 +-0.51,-89.641849426127 +-0.5,9.1434519737313 +-0.49,107.92822828611 +-0.48,205.15184502802 +-0.47,299.27828002014 +-0.46,388.82034753982 +-0.45,472.36315229395 +-0.44,548.58640332851 +-0.43,616.28523597131 +-0.42,674.38921343319 +-0.41,721.97920840129 +-0.4,758.30189839141 +-0.39,782.78164625926 +-0.38,795.02957850769 +-0.37,794.84971821964 +-0.36,782.24207589689 +-0.35,757.40264945995 +-0.34,720.72033340947 +-0.33,672.77078589326 +-0.32,614.307350399 +-0.31,546.24917524304 +-0.3,469.66671821805 +-0.29,385.76486499972 +-0.28,295.86392754555 +-0.27,201.37882215216 +-0.26,103.79675554571 +-0.25,4.6537709089924 +-0.24,-94.489476271485 +-0.23,-192.07233050923 +-0.22,-286.55874862142 +-0.21,-376.46152388192 +-0.2,-460.3657399941 +-0.19,-536.95108500046 +-0.18,-605.0126732253 +-0.17,-663.48004687596 +-0.16,-711.43405763607 +-0.15,-748.12136201796 +-0.14,-772.96630187381 +-0.13,-785.57998270298 +-0.12,-785.76640658492 +-0.11,-773.52556301789 +-0.1,-749.05342891892 +-0.09,-712.73887778516 +-0.08,-665.15754676091 +-0.07,-607.06275833034 +-0.06,-539.37363980633 +-0.05,-463.16062797803 +-0.04,-379.62858751763 +-0.03,-290.09780937913 +-0.02,-195.98318885566 +-0.01,-98.771911669867 +-0,-1.0593055321806e-09 +0.01,98.771911667765 +0.02,195.98318885361 +0.03,290.09780937716 +0.04,379.62858751577 +0.05,463.16062797631 +0.06,539.37363980478 +0.07,607.06275832899 +0.08,665.15754675977 +0.09,712.73887778426 +0.1,749.05342891827 +0.11,773.52556301749 +0.12,785.76640658478 +0.13,785.57998270311 +0.14,772.9663018742 +0.15,748.12136201861 +0.16,711.43405763697 +0.17,663.48004687709 +0.18,605.01267322664 +0.19,536.951085002 +0.2,460.36573999581 +0.21,376.46152388377 +0.22,286.55874862338 +0.23,192.07233051127 +0.24,94.48947627358 +0.25,-4.6537709068809 +0.26,-103.79675554361 +0.27,-201.37882215012 +0.28,-295.86392754359 +0.29,-385.76486499787 +0.3,-469.66671821635 +0.31,-546.2491752415 +0.32,-614.30735039765 +0.33,-672.77078589213 +0.34,-720.72033340858 +0.35,-757.4026494593 +0.36,-782.24207589649 +0.37,-794.84971821951 +0.38,-795.02957850782 +0.39,-782.78164625966 +0.4,-758.30189839207 +0.41,-721.97920840219 +0.42,-674.38921343433 +0.43,-616.28523597266 +0.44,-548.58640333005 +0.45,-472.36315229566 +0.46,-388.82034754168 +0.47,-299.27828002211 +0.48,-205.15184503007 +0.49,-107.92822828821 +0.5,-9.1434519758496 +0.51,89.641849424025 +0.52,186.86704142841 +0.53,280.996101858 +0.54,370.54184499014 +0.55,454.08937553171 +0.56,530.3184025287 +0.57,598.02406130892 +0.58,656.13591508321 +0.59,703.73483653869 +0.6,740.06750319119 +0.61,764.5582778964 +0.62,776.81828715717 +0.63,776.65155405646 +0.64,764.05808909602 +0.65,739.23389019638 +0.66,702.56785185818 +0.67,654.63563222924 +0.68,596.19057479722 +0.69,528.15182787849 +0.7,451.58984926571 +0.71,367.70952463458 +0.72,277.83116594258 +0.73,183.36968948634 +0.74,85.812301992025 +0.75,-13.304953357574 +0.76,-112.42142107595 +0.77,-209.97644567662 +0.78,-304.43398397675 +0.79,-394.30682925021 +0.8,-478.18006520037 +0.81,-554.73337986972 +0.82,-622.76188758257 +0.83,-681.19513054627 +0.84,-729.11396044443 +0.85,-765.76503378938 +0.86,-790.57269243332 +0.87,-803.14804187559 +0.88,-803.29508419565 +0.89,-791.01380889175 +0.9,-766.50019288093 +0.91,-730.14310966033 +0.92,-682.51819637425 +0.93,-624.37877550687 +0.94,-556.64397437106 +0.95,-480.38422975597 +0.96,-396.8044063338 +0.97,-307.22479505855 +0.98,-213.06029122333 +0.99,-115.79808055081 +1,-16.974185220279 +1.01,81.850760285254 +1.02,179.11612148279 +1.03,273.28587619303 +1.04,362.87283869331 +1.05,446.46211369051 +1.06,522.73341023063 +1.07,590.48186364146 +1.08,648.63703713386 +1.09,696.27980339495 +1.1,732.65683994055 +1.11,757.19250962635 +1.12,769.49793895521 +1.13,769.37715101007 +1.14,756.8301562927 +1.15,732.05295272361 +1.16,695.43443480347 +1.17,647.55026068007 +1.18,589.15377384108 +1.19,521.16412260288 +1.2,444.65176475812 +1.21,360.82158598249 +1.22,270.99389823349 +1.23,176.58361780774 +1.24,79.077951431404 +1.25,-19.987057712726 +1.26,-119.05075413815 +1.27,-216.55248235836 +1.28,-310.95619919055 +1.29,-400.77469790858 +1.3,-484.59306221582 +1.31,-561.09098015476 +1.32,-629.06356604971 +1.33,-687.440362108 +1.34,-735.30222001328 +1.35,-771.89579627786 +1.36,-796.64543275392 +1.37,-809.16223494083 +1.38,-809.25020491804 +1.39,-796.90933218379 +1.4,-772.33559365513 +1.41,-735.9178628292 +1.42,-688.2317768503 +1.43,-630.03065820261 +1.44,-562.23363419899 +1.45,-485.9111416286 +1.46,-402.26804516363 +1.47,-312.62463575809 +1.48,-218.39580870509 +1.49,-121.06874972729 +1.5,-22.179481003986 +1.51,76.71136298181 +1.52,174.04314774711 +1.53,268.27985111259 +1.54,357.93428735562 +1.55,441.59156118306 +1.56,517.93138164091 +1.57,585.74888405698 +1.58,643.9736316421 +1.59,691.6864970834 +1.6,728.1341578967 +1.61,752.7409769377 +1.62,765.11808070925 +1.63,765.0694922943 +1.64,752.5952221946 +1.65,727.89126833068 +1.66,691.3465252032 +1.67,643.53665095995 +1.68,585.2149890886 +1.69,517.30068790554 +1.7,440.86420520339 +1.71,357.11042665788 +1.72,267.35966422648 +1.73,173.02683420583 +1.74,75.599143322077 +1.75,-23.387365241975 +1.76,-122.37203599983 +1.77,-219.79421346498 +1.78,-314.11785445463 +1.79,-403.85575224262 +1.8,-487.59299053233 +1.81,-564.00925736625 +1.82,-631.89966706868 +1.83,-690.19376184698 +1.84,-737.97239338477 +1.85,-774.48221819436 +1.86,-799.14757812795 +1.87,-811.57957868488 +1.88,-811.58222194463 +1.89,-799.15549740544 +1.9,-774.49538198433 +1.91,-737.99074917846 +1.92,-690.21723613213 +1.93,-631.92816532951 +1.94,-564.04266408348 +1.95,-487.63116918318 +1.96,-403.89854530081 +1.97,-314.16508339037 +1.98,-219.84567874498 +1.99,-122.42751708729 +2,-23.446620596612 +2.01,75.53637624406 +2.02,172.96083895172 +2.03,267.29074534707 +2.04,357.03890970745 +2.05,440.79043673974 +2.06,517.22503548993 +2.07,585.13784128582 +2.08,643.45841733827 +2.09,691.2676363344 +2.1,727.81217579001 +2.11,752.51639856082 +2.12,764.99143114966 +2.13,765.0412966395 +2.14,752.66600553208 +2.15,728.06155574794 +2.16,691.61684178773 +2.17,643.90752179923 +2.18,585.68693927013 +2.19,517.8742425168 +2.2,441.5398893319 +2.21,357.8887653911 +2.22,268.24118265192 +2.23,174.01205741097 +2.24,76.688596394408 +2.25,-22.19315721496 +2.26,-121.07254793064 +2.27,-218.38892026613 +2.28,-312.60623103862 +2.29,-402.23727352197 +2.3,-485.86713141954 +2.31,-562.17549277383 +2.32,-629.95747190915 +2.33,-688.14261103284 +2.34,-735.81176182852 +2.35,-772.21158080852 +2.36,-796.76640982503 +2.37,-809.08735437739 +2.38,-808.97841654507 +2.39,-796.43958582631 +2.4,-771.66683913816 +2.41,-735.04904997775 +2.42,-687.16185548937 +2.43,-628.75857815723 +2.44,-560.75834529417 +2.45,-484.23159368935 +2.46,-400.38318801497 +2.47,-310.53341922502 +2.48,-216.09718261263 +2.49,-118.56166390046 +2.5,-19.462885267791 +2.51,79.638518802357 +2.52,177.18191382699 +2.53,271.63127762681 +2.54,361.49942447915 +2.55,445.37145909089 +2.56,521.92709050803 +2.57,589.96145405837 +2.58,648.40411295275 +2.59,696.3359398783 +2.6,733.00361235084 +2.61,757.83149322606 +2.62,770.4307090068 +2.63,770.60528277604 +2.64,758.35522503551 +2.65,733.87653370575 +2.66,697.55810328741 +2.67,649.97559192827 +2.68,591.88234311604 +2.69,524.19750516706 +2.7,447.99153587398 +2.71,364.46932091252 +2.72,274.95117224015 +2.73,180.85200615352 +2.74,83.659029378753 +2.75,-15.091714901321 +2.76,-113.83957120022 +2.77,-211.02388403144 +2.78,-305.10861021217 +2.79,-394.60654301626 +2.8,-478.10276614709 +2.81,-554.27696764715 +2.82,-621.92426184074 +2.83,-679.97419093521 +2.84,-727.50760661419 +2.85,-763.77116538999 +2.86,-788.1892091148 +2.87,-800.37284328798 +2.88,-800.12606998899 +2.89,-787.44887871607 +2.9,-762.53724638625 +2.91,-725.78004649669 +2.92,-677.75291619167 +2.93,-619.20917795538 +2.94,-551.0679591007 +2.95,-474.39969641675 +2.96,-390.40925457575 +2.97,-300.4169245317 +2.98,-205.8376015777 +2.99,-108.15847143642 +3,-8.9155562871714 +3.01,90.330509387066 +3.02,188.01909110328 +3.03,282.61416668217 +3.04,372.62855040108 +3.05,456.64734696688 +3.06,533.35026542558 +3.07,601.53244110496 +3.08,660.12343721589 +3.09,708.20412644547 +3.1,745.02118630954 +3.11,769.99897966378 +3.12,782.74863301104 +3.13,783.07416943428 +3.14,770.97559943525 +3.15,746.64892093448 +3.16,710.48302843261 +3.17,663.05358007745 +3.18,605.11391935668 +3.19,537.58319458665 +3.2,461.53186356002 +3.21,378.16481195249 +3.22,288.80235172156 +3.23,194.85939916383 +3.24,97.823161005478 +3.25,-0.77031957069846 +3.26,-99.360387078209 +3.27,-196.38638603055 +3.28,-290.31227324491 +3.29,-379.65084199514 +3.3,-462.98717598462 +3.31,-539.00096325584 +3.32,-606.4873181331 +3.33,-664.37578282374 +3.34,-711.74720901141 +3.35,-747.8482532084 +3.36,-772.10325726691 +3.37,-784.12332668631 +3.38,-783.71246354603 +3.39,-770.87065734433 +3.4,-745.79388499825 +3.41,-708.87102000493 +3.42,-660.67769950866 +3.43,-601.96724599363 +3.44,-533.6587867727 +3.45,-456.82275863503 +3.46,-372.6640262528 +3.47,-282.50288058003 +3.48,-187.75421690982 +3.49,-89.905220964836 +3.5,9.5080850756215 +3.51,108.92506672855 +3.52,206.78508951095 +3.53,301.55213124352 +3.54,391.73900620361 +3.55,475.93081909808 +3.56,552.80727897294 +3.57,621.16352115598 +3.58,679.92910885805 +3.59,728.18491476628 +3.6,765.17761639648 +3.61,790.33157660434 +3.62,803.25792189272 +3.63,803.76067534457 +3.64,791.83984746165 +3.65,767.69143616447 +3.66,731.7043359537 +3.67,684.45420497711 +3.68,626.69438672241 +3.69,559.34402950595 +3.7,483.47359112037 +3.71,400.28795724138 +3.72,311.10743982648 +3.73,217.34695517228 +3.74,120.49371000494 +3.75,22.083747507265 +3.76,-76.322276834244 +3.77,-173.1637075331 +3.78,-266.90450140648 +3.79,-356.05745172825 +3.8,-439.20764220176 +3.81,-515.03476086953 +3.82,-582.33392205585 +3.83,-640.03466796807 +3.84,-687.21785028981 +3.85,-723.13012553339 +3.86,-747.195835551 +3.87,-759.026085842 +3.88,-758.42487848583 +3.89,-745.39220298075 +3.9,-720.1240362438 +3.91,-683.00925177211 +3.92,-634.62348670998 +3.93,-575.72006354159 +3.94,-507.21810957983 +3.95,-430.18806161381 +3.96,-345.83478431576 +3.97,-255.47856863965 +3.98,-160.53430987863 +3.99,-62.48919375533 +4,37.120757550935 +4.01,136.73490955716 +4.02,234.79262778036 +4.03,329.75789004122 +4.04,420.14351061709 +4.05,504.53459421483 +4.06,581.61084988046 +4.07,650.16741294177 +4.08,709.13384660959 +4.09,757.59102357107 +4.1,794.78562134201 +4.11,820.14200277811 +4.12,833.27129438222 +4.13,833.97751923729 +4.14,822.26068784508 +4.15,798.3167981261 +4.16,762.53474458102 +4.17,715.49018535763 +4.18,657.9364639436 +4.19,590.7927286553 +4.2,515.12943728539 +4.21,432.15147550955 +4.22,343.17915528528 +4.23,249.62739290922 +4.24,152.98339510751 +4.25,54.783205062941 +4.26,-43.412521737971 +4.27,-140.04312980873 +4.28,-233.57257596653 +4.29,-322.51365348522 +4.3,-405.45144606817 +4.31,-481.06564175788 +4.32,-548.15135487866 +4.33,-605.63812763784 +4.34,-652.60681171905 +4.35,-688.3040636346 +4.36,-712.1542252367 +4.37,-723.76840202469 +4.38,-722.95059607803 +4.39,-709.70079689496 +4.4,-684.21498139253 +4.41,-646.88202306787 +4.42,-598.27755906527 +4.43,-539.15491186893 +4.44,-470.4332087917 +4.45,-393.18288662275 +4.46,-308.60881003425 +4.47,-218.03126998021 +4.48,-122.86516175376 +4.49,-24.597671077542 +4.5,75.235179869137 +4.51,175.07275660328 +4.52,273.35442464187 +4.53,368.54416180563 +4.54,459.15478237189 +4.55,543.77139104752 +4.56,621.07369687852 +4.57,689.85683519269 +4.58,749.05036920089 +4.59,797.73517159022 +4.6,835.15791987651 +4.61,860.74297691545 +4.62,874.10146920989 +4.63,875.03741984279 +4.64,863.55083931589 +4.65,839.83772554973 +4.66,804.28697304495 +4.67,757.47423994935 +4.68,700.15286975061 +4.69,633.24201076508 +4.7,557.81212078544 +4.71,475.06808548736 +4.72,386.33021682834 +4.73,293.01343110502 +4.74,196.60493504353 +4.75,98.640771826686 +4.76,0.68159694098335 +4.77,-95.711934127071 +4.78,-189.00377819468 +4.79,-277.70672853569 +4.8,-360.40586885347 +4.81,-435.78088719052 +4.82,-502.62689787114 +4.83,-559.87344310267 +4.84,-606.60137456875 +4.85,-642.05734878168 +4.86,-665.66570759366 +4.87,-677.03755650403 +4.88,-675.97689759227 +4.89,-662.48372035661 +4.9,-636.75400171408 +4.91,-599.17661516184 +4.92,-550.32719784417 +4.93,-490.95907224526 +4.94,-421.99136567797 +4.95,-344.49451493147 +4.96,-259.67338467792 +4.97,-168.84826587134 +4.98,-73.434053804855 +4.99,25.082065798886 +5,125.16407076059 diff --git a/test/tests/functions/baseline_correction/gold/corrected_disp.csv b/test/tests/functions/baseline_correction/gold/corrected_disp.csv new file mode 100644 index 0000000000..10dee50bfe --- /dev/null +++ b/test/tests/functions/baseline_correction/gold/corrected_disp.csv @@ -0,0 +1,1002 @@ +x,y +-5,0 +-4.99,-0.039932191938119 +-4.98,-0.15046435768629 +-4.97,-0.31562963552309 +-4.96,-0.52011466325019 +-4.95,-0.74939312837544 +-4.94,-0.98985260948891 +-4.93,-1.2289124727557 +-4.92,-1.4551307363599 +-4.91,-1.658297997348 +-4.9,-1.8295167267765 +-4.89,-1.961264477039 +-4.88,-2.0474398059805 +-4.87,-2.0833900017999 +-4.86,-2.0659199863877 +-4.85,-1.9932820780211 +-4.84,-1.8651466024649 +-4.83,-1.6825536496488 +-4.82,-1.4478465763489 +-4.81,-1.164588148929 +-4.8,-0.83746049954774 +-4.79,-0.47215032993309 +-4.78,-0.075221034738057 +-4.77,0.34602637211564 +-4.76,0.78370146315821 +-4.75,1.2294795213834 +-4.74,1.6747612550048 +-4.73,2.1108346984862 +-4.72,2.5290368565088 +-4.71,2.9209126473318 +-4.7,3.2783687404727 +-4.69,3.5938199601478 +-4.68,3.8603260392839 +-4.67,4.0717166573328 +-4.66,4.2227028762544 +-4.65,4.3089733000193 +-4.64,4.3272735204906 +-4.63,4.2754676728258 +-4.62,4.152581202487 +-4.61,3.9588242391585 +-4.6,3.6955952757204 +-4.59,3.3654651581346 +-4.58,2.9721416998069 +-4.57,2.5204155368527 +-4.56,2.0160881339171 +-4.55,1.465883129173 +-4.54,0.8773424674314 +-4.53,0.25870900784243 +-4.52,-0.3812024963055 +-4.51,-1.0331439669971 +-4.5,-1.6875798929444 +-4.49,-2.3348382024833 +-4.48,-2.9652637007256 +-4.47,-3.5693716152376 +-4.46,-4.1379987946348 +-4.45,-4.6624501432635 +-4.44,-5.1346379519663 +-4.43,-5.5472118985947 +-4.42,-5.893677640656 +-4.41,-6.1685021038963 +-4.4,-6.3672037818967 +-4.39,-6.4864265995406 +-4.38,-6.5239961537653 +-4.37,-6.4789574242219 +-4.36,-6.3515933399386 +-4.35,-6.1434238911858 +-4.34,-5.8571857836967 +-4.33,-5.4967929403494 +-4.32,-5.0672784585146 +-4.31,-4.5747189247323 +-4.3,-4.0261422675782 +-4.29,-3.4294205901142 +-4.28,-2.7931496610777 +-4.27,-2.1265169552094 +-4.26,-1.4391603145037 +-4.25,-0.74101945085351 +-4.24,-0.042182624182603 +-4.23,0.64726909305133 +-4.22,1.3174175153768 +-4.21,1.9586605581764 +-4.2,2.5618605548272 +-4.19,3.1184853426871 +-4.18,3.6207398970017 +-4.17,4.0616864403525 +-4.16,4.435351136526 +-4.15,4.7368156887934 +-4.14,4.9622924002201 +-4.13,5.1091815140212 +-4.12,5.1761099310447 +-4.11,5.1629506947941 +-4.1,5.0708229373541 +-4.09,4.9020722874096 +-4.08,4.6602320493632 +-4.07,4.3499657655198 +-4.06,3.9769920666416 +-4.05,3.5479929952548 +-4.04,3.0705072464879 +-4.03,2.5528100088771 +-4.02,2.0037812986965 +-4.01,1.4327648626458 +-4,0.8494198723051 +-3.99,0.26356774728582 +-3.98,-0.3149634793205 +-3.97,-0.87649480094646 +-3.96,-1.411649430818 +-3.95,-1.911501134962 +-3.94,-2.3677153682015 +-3.93,-2.772680989949 +-3.92,-3.1196304852603 +-3.91,-3.4027467979567 +-3.9,-3.6172550937955 +-3.89,-3.759498009413 +-3.88,-3.8269932032037 +-3.87,-3.8184723034738 +-3.86,-3.7339006425748 +-3.85,-3.5744774687901 +-3.84,-3.342616635605 +-3.83,-3.0419080758911 +-3.82,-2.6770606715723 +-3.81,-2.2538274227174 +-3.8,-1.7789140991538 +-3.79,-1.2598728181774 +-3.78,-0.70498222959544 +-3.77,-0.12311620057384 +-3.76,0.47639692594598 +-3.75,1.0839222768529 +-3.74,1.6896712625242 +-3.73,2.2838568458273 +-3.72,2.8568488150799 +-3.71,3.3993266095884 +-3.7,3.902427285008 +-3.69,4.3578862824737 +-3.68,4.7581687790293 +-3.67,5.0965895454288 +-3.66,5.3674194187139 +-3.65,5.5659767081461 +-3.64,5.6887020907027 +-3.63,5.7332158128214 +-3.62,5.6983562941701 +-3.61,5.5841995226031 +-3.6,5.3920589324151 +-3.59,5.1244657659662 +-3.58,4.78513022647 +-3.57,4.3788840328629 +-3.56,3.911605280966 +-3.55,3.3901267942987 +-3.54,2.8221294083304 +-3.53,2.2160218696263 +-3.52,1.5808092425675 +-3.51,0.92595189750713 +-3.5,0.26121730295927 +-3.49,-0.40347304204597 +-3.48,-1.0581991227589 +-3.47,-1.6931979190574 +-3.46,-2.2990164599587 +-3.45,-2.8666600095039 +-3.44,-3.3877330478877 +-3.43,-3.8545708253673 +-3.42,-4.2603594150348 +-3.41,-4.5992423718026 +-3.4,-4.8664123163286 +-3.39,-5.0581859999232 +-3.38,-5.17206166742 +-3.37,-5.2067578136209 +-3.36,-5.1622327226668 +-3.35,-5.0396844825123 +-3.34,-4.8415314745968 +-3.33,-4.5713736467108 +-3.32,-4.2339351799362 +-3.31,-3.8349894541606 +-3.3,-3.3812674954313 +-3.29,-2.8803513492677 +-3.28,-2.3405540613595 +-3.27,-1.770788158582 +-3.26,-1.1804247042238 +-3.25,-0.57914515030836 +-3.24,0.02321167689875 +-3.23,0.61680504512476 +-3.22,1.1919477865438 +-3.21,1.7392593186816 +-3.2,2.2498138030353 +-3.19,2.7152811049047 +-3.18,3.1280583319469 +-3.17,3.4813898772658 +-3.16,3.7694740743766 +-3.15,3.9875547823334 +-3.14,4.1319964571457 +-3.13,4.2003415261216 +-3.12,4.1913491607055 +-3.11,4.1050148367934 +-3.1,3.9425703747601 +-3.09,3.7064644589498 +-3.08,3.4003239444725 +-3.07,3.0288965621112 +-3.06,2.597975925536 +-3.05,2.1143100239525 +-3.04,1.585494644253 +-3.03,1.0198534037337 +-3.02,0.42630628625576 +-3.01,-0.18577124447267 +-3,-0.8066963316503 +-2.99,-1.4266316764602 +-2.98,-2.0357409404582 +-2.97,-2.6243441476687 +-2.96,-3.1830706354485 +-2.95,-3.703007140556 +-2.94,-4.1758386851302 +-2.93,-4.5939800392811 +-2.92,-4.9506956870921 +-2.91,-5.2402064027773 +-2.9,-5.4577807559288 +-2.89,-5.5998101021761 +-2.88,-5.6638658752716 +-2.87,-5.6487382773856 +-2.86,-5.5544557558931 +-2.85,-5.3822849593671 +-2.84,-5.1347111726672 +-2.83,-4.8153995388353 +-2.82,-4.429137679067 +-2.81,-3.981760614769 +-2.8,-3.4800591752918 +-2.79,-2.9316733348954 +-2.78,-2.3449721608475 +-2.77,-1.7289222652246 +-2.76,-1.0929468341562 +-2.75,-0.44677745760963 +-2.74,0.19969890451703 +-2.73,0.83659540686237 +-2.72,1.4541808022209 +-2.71,2.043032472819 +-2.7,2.5941845959448 +-2.69,3.0992691085622 +-2.68,3.5506472471682 +-2.67,3.9415295904888 +-2.66,4.2660827103092 +-2.65,4.519520750988 +-2.64,4.6981804921619 +-2.63,4.7995787123026 +-2.62,4.8224509485601 +-2.61,4.7667710416916 +-2.6,4.6337511585933 +-2.59,4.4258222927674 +-2.58,4.1465955492717 +-2.57,3.8008048269017 +-2.56,3.3942317999028 +-2.55,2.9336143844398 +-2.54,2.4265401319908 +-2.53,1.8813262324791 +-2.52,1.3068880188928 +-2.51,0.71259804796386 +-2.5,0.10813797935225 +-2.49,-0.49665441080024 +-2.48,-1.0919406685506 +-2.47,-1.6680371021012 +-2.46,-2.215567771069 +-2.45,-2.7256126118449 +-2.44,-3.1898483642799 +-2.43,-3.6006800757065 +-2.42,-3.9513611082308 +-2.41,-4.2360997580089 +-2.4,-4.4501508040253 +-2.39,-4.589890541403 +-2.38,-4.6528741192065 +-2.37,-4.6378742744194 +-2.36,-4.5449008542 +-2.35,-4.3752008171896 +-2.34,-4.1312387138575 +-2.33,-3.8166579548263 +-2.32,-3.436223476189 +-2.31,-2.9957467079783 +-2.3,-2.5019940272614 +-2.29,-1.9625801419355 +-2.28,-1.3858480841437 +-2.27,-0.78073770783412 +-2.26,-0.15664476403841 +-2.25,0.47672722425106 +-2.24,1.1095199510032 +-2.23,1.7318757666237 +-2.22,2.3340931170065 +-2.21,2.9067795307084 +-2.2,3.4409997418739 +-2.19,3.928416609798 +-2.18,4.3614226181709 +-2.17,4.733259874079 +-2.16,5.0381267179534 +-2.15,5.2712692621954 +-2.14,5.4290564131255 +-2.13,5.509037195151 +-2.12,5.5099794714855 +-2.11,5.431889450689 +-2.1,5.2760116722829 +-2.09,5.0448094692226 +-2.08,4.7419262180036 +-2.07,4.3721279849633 +-2.06,3.9412284736949 +-2.05,3.4559974587728 +-2.04,2.9240541448779 +-2.03,2.353747139652 +-2.02,1.7540229264229 +-2.01,1.1342849154874 +-2,0.50424529349974 +-1.99,-0.12622799000247 +-1.98,-0.74726669020693 +-1.97,-1.3491577314081 +-1.96,-1.922496223015 +-1.95,-2.458333609203 +-1.94,-2.9483186176933 +-1.93,-3.3848287875302 +-1.92,-3.7610904982083 +-1.91,-4.0712856080627 +-1.9,-4.3106430232424 +-1.89,-4.475513750374 +-1.88,-4.5634282498903 +-1.87,-4.5731351899238 +-1.86,-4.5046209800432 +-1.85,-4.3591097915322 +-1.84,-4.1390440473854 +-1.83,-3.8480457064888 +-1.82,-3.4908589399429 +-1.81,-3.0732751091993 +-1.8,-2.6020412305066 +-1.79,-2.0847533667182 +-1.78,-1.5297366294936 +-1.77,-0.94591368367874 +-1.76,-0.34266382888972 +-1.75,0.27032512070208 +-1.74,0.88320981969524 +-1.73,1.4861468281117 +-1.72,2.069448047905 +-1.71,2.6237337083887 +-1.7,3.1400804859695 +-1.69,3.6101624261901 +-1.68,4.02638244276 +-1.67,4.3819923159204 +-1.66,4.6711993076671 +-1.65,4.8892577005888 +-1.64,5.0325438242571 +-1.63,5.0986133848606 +-1.62,5.0862401875863 +-1.61,4.9954356539758 +-1.6,4.8274488085952 +-1.59,4.5847467515478 +-1.58,4.270975916286 +-1.57,3.8909047220714 +-1.56,3.4503485335417 +-1.55,2.9560781002196 +-1.54,2.4157129261249 +-1.53,1.837601257049 +-1.52,1.2306885594189 +-1.51,0.60437658700156 +-1.5,-0.031624762632381 +-1.49,-0.66745044317131 +-1.48,-1.2932357183772 +-1.47,-1.8992716132893 +-1.46,-2.4761579124872 +-1.45,-3.0149513013375 +-1.44,-3.5073062957623 +-1.43,-3.9456067563777 +-1.42,-4.3230859059034 +-1.41,-4.6339329468736 +-1.4,-4.8733846165458 +-1.39,-5.0378002288818 +-1.38,-5.1247190041986 +-1.37,-5.1328988096841 +-1.36,-5.0623356780216 +-1.35,-4.9142638078469 +-1.34,-4.6911360428947 +-1.33,-4.3965851314565 +-1.32,-4.035366387821 +-1.31,-3.6132826581127 +-1.3,-3.1370927607837 +-1.29,-2.6144048657193 +-1.28,-2.053556474998 +-1.27,-1.463482912973 +-1.26,-0.85357638900957 +-1.25,-0.23353786132884 +-1.24,0.38677596882928 +-1.23,0.99750810307375 +-1.22,1.5889567100247 +-1.21,2.1517281179033 +-1.2,2.6768849565668 +-1.19,3.1560870959156 +-1.18,3.5817231668566 +-1.17,3.9470305660124 +-1.16,4.2462020988817 +-1.15,4.4744775244885 +-1.14,4.6282186069862 +-1.13,4.7049664580262 +-1.12,4.7034802765246 +-1.11,4.6237568778366 +-1.1,4.4670307012827 +-1.09,4.2357542933805 +-1.08,3.9335595846937 +-1.07,3.5652005564023 +-1.06,3.1364782110827 +-1.05,2.6541490281374 +-1.04,2.1258183523252 +-1.03,1.5598203868677 +-1.02,0.96508669160911 +-1.01,0.35100525459044 +-1,-0.27272762120961 +-0.99,-0.8962603216517 +-0.98,-1.5097413604503 +-0.97,-2.1034748095396 +-0.96,-2.6680732971968 +-0.95,-3.1946061322631 +-0.94,-3.6747402277568 +-0.93,-4.1008716060321 +-0.92,-4.4662453963624 +-0.91,-4.7650624534737 +-0.9,-4.9925709045831 +-0.89,-5.1451411607546 +-0.88,-5.2203232785055 +-0.87,-5.2168856508313 +-0.86,-5.1348345510883 +-0.85,-4.9754140989543 +-0.84,-4.7410867591995 +-0.83,-4.4354945711193 +-0.82,-4.0634018176032 +-0.81,-3.6306199936253 +-0.8,-3.1439162150091 +-0.79,-2.6109066198393 +-0.78,-2.0399363274538 +-0.77,-1.4399479410507 +-0.76,-0.82034058796982 +-0.75,-0.19082179633816 +-0.74,0.43874552456503 +-0.73,1.0584985176109 +-0.72,1.6587298636351 +-0.71,2.2300407561995 +-0.7,2.7634890615703 +-0.69,3.2507302437357 +-0.68,3.6841488873352 +-0.67,4.0569787139355 +-0.66,4.3634092045734 +-0.65,4.5986771708313 +-0.64,4.7591417808599 +-0.63,4.842341901495 +-0.62,4.8470348531157 +-0.61,4.7732159167614 +-0.6,4.6221183650343 +-0.59,4.3961939010554 +-0.58,4.0990739675513 +-0.57,3.7355124057517 +-0.56,3.3113104018559 +-0.55,2.8332249548753 +-0.54,2.3088622492367 +-0.53,1.7465576595728 +-0.52,1.1552442305072 +-0.51,0.54431173072346 +-0.5,-0.076541434373956 +-0.49,-0.69746125141605 +-0.48,-1.3085935612721 +-0.47,-1.9002394526561 +-0.46,-2.463008323026 +-0.45,-2.9879659508648 +-0.44,-3.466775475276 +-0.43,-3.8918288869049 +-0.42,-4.2563670253008 +-0.41,-4.5545862276649 +-0.4,-4.7817298709933 +-0.39,-4.93416339358 +-0.38,-5.0094316616571 +-0.37,-5.006297668815 +-0.36,-4.9247621069006 +-0.35,-4.766063327007 +-0.34,-4.5326578189229 +-0.33,-4.2281815204615 +-0.32,-3.8573924257992 +-0.31,-3.4260955960977 +-0.3,-2.9410515848803 +-0.29,-2.4098698209064 +-0.28,-1.8408886051624 +-0.27,-1.2430436021253 +-0.26,-0.62572693019959 +-0.25,0.0013610471948517 +-0.24,0.62836458938452 +-0.23,1.245428138296 +-0.22,1.8428516973598 +-0.21,2.4112438584959 +-0.2,2.9416699188009 +-0.19,3.4257927965908 +-0.18,3.8560045744504 +-0.17,4.2255464650676 +-0.16,4.5286154396833 +-0.15,4.7604558163286 +-0.14,4.9174342179973 +-0.13,4.9970969726727 +-0.12,4.9982088110647 +-0.11,4.920772386556 +-0.1,4.7660282711602 +-0.09,4.5364354237867 +-0.08,4.2356324730575 +-0.07,3.8683803424589 +-0.06,3.4404872222499 +-0.05,2.9587170260391 +-0.04,2.430682744836 +-0.03,1.8647264180884 +-0.02,1.2697876682557 +-0.01,0.6552626962947 +-0,0.030856193845246 +0.01,-0.59357168041732 +0.02,-1.2081607596678 +0.03,-1.8032063257909 +0.04,-2.3693120745688 +0.05,-2.8975383171293 +0.06,-3.3795428713299 +0.07,-3.8077126007227 +0.08,-4.1752834187405 +0.09,-4.4764468925328 +0.1,-4.706441915498 +0.11,-4.8616295423808 +0.12,-4.93955055566 +0.13,-4.9389640665672 +0.14,-4.8598670631812 +0.15,-4.7034944417802 +0.16,-4.4722995010444 +0.17,-4.1699151795508 +0.18,-3.8010966991904 +0.19,-3.3716466381032 +0.2,-2.8883232855381 +0.21,-2.3587339969773 +0.22,-1.7912153246114 +0.23,-1.1947014183441 +0.24,-0.5785830524438 +0.25,0.047440372431126 +0.26,0.67351392874405 +0.27,1.2897826122839 +0.28,1.8865466748228 +0.29,2.4544147494786 +0.3,2.9844518953007 +0.31,3.4683205692913 +0.32,3.8984121221342 +0.33,4.267966793109 +0.34,4.5711803325729 +0.35,4.803295586606 +0.36,4.9606774996374 +0.37,5.0408704335279 +0.38,5.0426368990565 +0.39,4.9659771645489 +0.4,4.8121291487639 +0.41,4.5835489125536 +0.42,4.2838719714306 +0.43,3.9178559483378 +0.44,3.4913054439496 +0.45,3.0109806998277 +0.46,2.4844906580116 +0.47,1.9201732638239 +0.48,1.3269637388819 +0.49,0.71425379182493 +0.5,0.091743363786691 +0.51,-0.53071236907584 +0.52,-1.1432582216715 +0.53,-1.7361947260714 +0.54,-2.300131054678 +0.55,-2.8261329888665 +0.56,-3.3058641340818 +0.57,-3.7317170731008 +0.58,-4.096933759075 +0.59,-4.3957118538751 +0.6,-4.6232963831231 +0.61,-4.7760547876689 +0.62,-4.8515342062683 +0.63,-4.8485002047229 +0.64,-4.7669564183848 +0.65,-4.6081443112675 +0.66,-4.3745239106292 +0.67,-4.069734882544 +0.68,-3.6985393394151 +0.69,-3.2667465788147 +0.7,-2.7811218071327 +0.71,-2.2492792469955 +0.72,-1.6795624037379 +0.73,-1.0809122164331 +0.74,-0.46272637248663 +0.75,0.16528890531208 +0.76,0.79327187012868 +0.77,1.4113606195168 +0.78,2.0098488231877 +0.79,2.5793383350584 +0.8,3.1108877055419 +0.81,3.5961528182566 +0.82,4.0275185981608 +0.83,4.3982188887969 +0.84,4.7024433150448 +0.85,4.935428525019 +0.86,5.0935334657413 +0.87,5.1742966469303 +0.88,5.1764749514185 +0.89,5.1000630296838 +0.9,4.9462933630276 +0.91,4.717616827103 +0.92,4.4176638915816 +0.93,4.0511873225581 +0.94,3.6239870835238 +0.95,3.1428188400607 +0.96,2.6152873995949 +0.97,2.0497267040682 +0.98,1.4550681284624 +0.99,0.84069976086573 +1,0.21631831516262 +1.01,-0.40822403631896 +1.02,-1.0230751070971 +1.03,-1.6185378466195 +1.04,-2.1852237243252 +1.05,-2.7142006012467 +1.06,-3.1971335743515 +1.07,-3.6264169557771 +1.08,-3.9952935487202 +1.09,-4.2979620393284 +1.1,-4.5296679537323 +1.11,-4.6867788755503 +1.12,-4.7668419774889 +1.13,-4.7686222810494 +1.14,-4.692122881479 +1.15,-4.5385840403042 +1.16,-4.3104645010785 +1.17,-4.0114022155064 +1.18,-3.6461572080825 +1.19,-3.2205364798992 +1.2,-2.7413026111936 +1.21,-2.216066583525 +1.22,-1.6531686862646 +1.23,-1.0615461701972 +1.24,-0.45059273815093 +1.25,0.16998992670995 +1.26,0.79034466272213 +1.27,1.4006146251187 +1.28,1.9910989452837 +1.29,2.5524050504944 +1.3,3.0755975399221 +1.31,3.5523387318927 +1.32,3.9750202028419 +1.33,4.3368826258383 +1.34,4.6321231695954 +1.35,4.8559860010106 +1.36,5.0048380759978 +1.37,5.0762260813379 +1.38,5.0689153716324 +1.39,4.9829094482456 +1.4,4.8194498137084 +1.41,4.5809969111914 +1.42,4.2711907432574 +1.43,3.8947939536076 +1.44,3.4576167885429 +1.45,2.9664251515503 +1.46,2.4288346124556 +1.47,1.8531899513619 +1.48,1.2484335113929 +1.49,0.62396496670414 +1.5,-0.010507740440232 +1.51,-0.64512049709845 +1.52,-1.2700095058974 +1.53,-1.875465403666 +1.54,-2.4520876807404 +1.55,-2.9909316839072 +1.56,-3.4836502899085 +1.57,-3.9226249446436 +1.58,-4.3010860201782 +1.59,-4.6132191289195 +1.6,-4.8542570506233 +1.61,-5.020554428139 +1.62,-5.1096454867987 +1.63,-5.1202822780768 +1.64,-5.052454354809 +1.65,-4.9073897084867 +1.66,-4.6875332736879 +1.67,-4.3965104502588 +1.68,-4.0390678755996 +1.69,-3.6210001337603 +1.7,-3.1490564131277 +1.71,-2.630834840051 +1.72,-2.074663229531 +1.73,-1.4894663208305 +1.74,-0.88462502027323 +1.75,-0.26982885424354 +1.76,0.34507724016146 +1.77,0.95024836118694 +1.78,1.5359953029237 +1.79,2.0929374118526 +1.8,2.6121504026517 +1.81,3.0853077927651 +1.82,3.5048120758776 +1.83,3.8639144862395 +1.84,4.1568222902893 +1.85,4.3787898174994 +1.86,4.5261937974899 +1.87,4.5965898672204 +1.88,4.5887525840868 +1.89,4.5026939763692 +1.9,4.339663918417 +1.91,4.1021302628261 +1.92,3.7937406005238 +1.93,3.4192644495231 +1.94,2.9845186173891 +1.95,2.4962750689874 +1.96,1.9621546779226 +1.97,1.3905073384749 +1.98,0.79028005489863 +1.99,0.17087662119752 +2,-0.45799202415878 +2.01,-1.0864586748705 +2.02,-1.7046567823363 +2.03,-2.3028756327021 +2.04,-2.8717134374224 +2.05,-3.4022246042036 +2.06,-3.8860623401326 +2.07,-4.3156085878327 +2.08,-4.6840950997016 +2.09,-4.9857090986009 +2.1,-5.2156863650598 +2.11,-5.370384415331 +2.12,-5.4473408606846 +2.13,-5.4453126505171 +2.14,-5.3642952726302 +2.15,-5.2055214833431 +2.16,-4.9714427519671 +2.17,-4.6656925590571 +2.18,-4.2930249583521 +2.19,-3.8592427954725 +2.2,-3.3711050965219 +2.21,-2.8362204038606 +2.22,-2.2629261537788 +2.23,-1.6601593976118 +2.24,-1.0373129202287 +2.25,-0.40408927603221 +2.26,0.22965350863296 +2.27,0.85405574845618 +2.28,1.4594141911707 +2.29,2.0363315251445 +2.3,2.5758680012655 +2.31,3.0696800000592 +2.32,3.5101518994854 +2.33,3.8905172749771 +2.34,4.2049637251882 +2.35,4.448726934347 +2.36,4.6181618623771 +2.37,4.7108051373257 +2.38,4.7254091747113 +2.39,4.6619632270117 +2.4,4.5216955349033 +2.41,4.3070504539087 +2.42,4.0216514632311 +2.43,3.6702445642022 +2.44,3.2586204492291 +2.45,2.793527371749 +2.46,2.28255951757 +2.47,1.7340406827811 +2.48,1.1568919266683 +2.49,0.56048858548866 +2.5,-0.045484719582873 +2.51,-0.65118864377337 +2.52,-1.2467842116407 +2.53,-1.8225911481563 +2.54,-2.3692343375778 +2.55,-2.8777985402712 +2.56,-3.3399650995157 +2.57,-3.7481457348563 +2.58,-4.0956021282605 +2.59,-4.3765509892983 +2.6,-4.5862579498353 +2.61,-4.7211103069517 +2.62,-4.7786752845318 +2.63,-4.7577400886439 +2.64,-4.658329865832 +2.65,-4.481706931695 +2.66,-4.2303533138511 +2.67,-3.907931045781 +2.68,-3.5192243047936 +2.69,-3.0700643753607 +2.7,-2.5672395836891 +2.71,-2.0183864696664 +2.72,-1.431872046413 +2.73,-0.81665931907219 +2.74,-0.18217017585403 +2.75,0.46186743329554 +2.76,1.1055676737724 +2.77,1.7390462451876 +2.78,2.3525724986866 +2.79,2.9367280884962 +2.8,3.4825457697175 +2.81,3.9816596788037 +2.82,4.4264331896647 +2.83,4.8100764190854 +2.84,5.1267573229647 +2.85,5.371690261511 +2.86,5.5412128320613 +2.87,5.6328426722539 +2.88,5.6453162761782 +2.89,5.5786068971647 +2.9,5.4339262478479 +2.91,5.2137073063996 +2.92,4.9215595293608 +2.93,4.5622176823708 +2.94,4.1414648354939 +2.95,3.6660384754759 +2.96,3.1435254915132 +2.97,2.5822456894266 +2.98,1.9911138926054 +2.99,1.379504645558 +3,0.75709912293587 +3.01,0.13373788371155 +3.02,-0.48073901577391 +3.03,-1.0766469200134 +3.04,-1.6446056233635 +3.05,-2.1756941346257 +3.06,-2.6615853969051 +3.07,-3.0946787380362 +3.08,-3.4682272766986 +3.09,-3.7764306103973 +3.1,-4.0145411324493 +3.11,-4.178927081075 +3.12,-4.2671375605778 +3.13,-4.2779389500402 +3.14,-4.2113330921984 +3.15,-4.0685555932023 +3.16,-3.8520639855969 +3.17,-3.5654909260184 +3.18,-3.2135870053307 +3.19,-2.8021553941189 +3.2,-2.337945911112 +3.21,-1.8285620435236 +3.22,-1.2823285641862 +3.23,-0.70817093653932 +3.24,-0.11546673266548 +3.25,0.48610054336496 +3.26,1.0866900010933 +3.27,1.6764652539823 +3.28,2.2457483999788 +3.29,2.7851697475126 +3.3,3.2858160785481 +3.31,3.7393802185443 +3.32,4.1382783612253 +3.33,4.4757847622668 +3.34,4.7461247462124 +3.35,4.9445765802893 +3.36,5.0675390181113 +3.37,5.1126007992807 +3.38,5.0785579019521 +3.39,4.965458002036 +3.4,4.7745808794771 +3.41,4.5084309181111 +3.42,4.1706895572261 +3.43,3.7661672029408 +3.44,3.3007188703705 +3.45,2.7811601240373 +3.46,2.2151534262994 +3.47,1.6110940344697 +3.48,0.97798111607517 +3.49,0.3252631773139 +3.5,-0.33729540577042 +3.51,-0.99977796591156 +3.52,-1.6522617365135 +3.53,-2.2849788111835 +3.54,-2.8884746486947 +3.55,-3.4537415594496 +3.56,-3.9723746000964 +3.57,-4.4366933290003 +3.58,-4.8398664989927 +3.59,-5.1760204182883 +3.6,-5.440323160663 +3.61,-5.6290698928515 +3.62,-5.7397282661568 +3.63,-5.770990712881 +3.64,-5.7227812052097 +3.65,-5.5962667483891 +3.66,-5.3938304768326 +3.67,-5.1190374332909 +3.68,-4.7765692131215 +3.69,-4.3721592317215 +3.7,-3.9124999749201 +3.71,-3.4051297230562 +3.72,-2.8583167517972 +3.73,-2.2809272944251 +3.74,-1.6822912771895 +3.75,-1.0720421763162 +3.76,-0.45996853010001 +3.77,0.14412865399754 +3.78,0.73061312238497 +3.79,1.2901485146067 +3.8,1.8138566332382 +3.81,2.2934507789942 +3.82,2.7213711817385 +3.83,3.0909093847422 +3.84,3.3962984666432 +3.85,3.6328265956017 +3.86,3.7968983676838 +3.87,3.8860925843601 +3.88,3.8991967288312 +3.89,3.8362405634271 +3.9,3.6984854572565 +3.91,3.488401603714 +3.92,3.2096441801987 +3.93,2.8669728644127 +3.94,2.4662016712828 +3.95,2.0140861257241 +3.96,1.518228902587 +3.97,0.98695644165855 +3.98,0.42918291968454 +3.99,-0.14572135765047 +4,-0.72808514727149 +4.01,-1.3080982895299 +4.02,-1.8759360599215 +4.03,-2.4219611725348 +4.04,-2.9368313864106 +4.05,-3.4116763821039 +4.06,-3.8382428489749 +4.07,-4.2089874620688 +4.08,-4.517240333058 +4.09,-4.7572980941732 +4.1,-4.9245042527182 +4.11,-5.0153360759614 +4.12,-5.027456317428 +4.13,-4.959751473576 +4.14,-4.8123656897224 +4.15,-4.5866772542468 +4.16,-4.2852932084243 +4.17,-3.9120127751994 +4.18,-3.4717636587338 +4.19,-2.9705246160338 +4.2,-2.4152461244557 +4.21,-1.8137297456087 +4.22,-1.1745086828232 +4.23,-0.50673789302527 +4.24,0.17997568680221 +4.25,0.8757081588883 +4.26,1.5703772784618 +4.27,2.2538811572376 +4.28,2.9162755975121 +4.29,3.5479260710017 +4.3,4.139633105453 +4.31,4.6827976228924 +4.32,5.1695418090712 +4.33,5.5928443385092 +4.34,5.9466202895128 +4.35,6.225840123825 +4.36,6.4265772494618 +4.37,6.5461101826404 +4.38,6.5829123369294 +4.39,6.5367018333855 +4.4,6.4084449380171 +4.41,6.2003116579217 +4.42,5.9156677396022 +4.43,5.5589960384132 +4.44,5.1358452825298 +4.45,4.6527103226254 +4.46,4.1169595062674 +4.47,3.5366830523781 +4.48,2.9205919869382 +4.49,2.2778620336539 +4.5,1.6179975305859 +4.51,0.95066779157787 +4.52,0.28556346431287 +4.53,-0.36775788805971 +4.54,-1.0000319113387 +4.55,-1.6024107762714 +4.56,-2.1666350956002 +4.57,-2.6851272080967 +4.58,-3.1511333694361 +4.59,-3.5588239819845 +4.6,-3.9033774529162 +4.61,-4.1810480366621 +4.62,-4.3892190539264 +4.63,-4.5264548025225 +4.64,-4.5925101867251 +4.65,-4.5882876513933 +4.66,-4.5158980763372 +4.67,-4.3785355475848 +4.68,-4.1804562034013 +4.69,-3.926893570977 +4.7,-3.6239556626679 +4.71,-3.2785039358569 +4.72,-2.8980779508347 +4.73,-2.4906821061086 +4.74,-2.0647052061686 +4.75,-1.628725635077 +4.76,-1.1913746428691 +4.77,-0.76117485404393 +4.78,-0.34634301374899 +4.79,0.045318068907363 +4.8,0.40660292110988 +4.81,0.73106504668976 +4.82,1.0131176408904 +4.83,1.2481847038871 +4.84,1.4328340014035 +4.85,1.5648400774226 +4.86,1.6432861896828 +4.87,1.6686541645104 +4.88,1.6428150229331 +4.89,1.5691155906025 +4.9,1.4523526941484 +4.91,1.2988003021528 +4.92,1.1161333574128 +4.93,0.91341040469706 +4.94,0.70103892678162 +4.95,0.49062224852969 +4.96,0.2949438425203 +4.97,0.12781868850288 +4.98,0.0039610148305655 +4.99,-0.061090748662536 +5,-0.05115595713869 diff --git a/test/tests/functions/baseline_correction/gold/corrected_vel.csv b/test/tests/functions/baseline_correction/gold/corrected_vel.csv new file mode 100644 index 0000000000..e47839c9a0 --- /dev/null +++ b/test/tests/functions/baseline_correction/gold/corrected_vel.csv @@ -0,0 +1,1002 @@ +x,y +-5,0 +-4.99,0.025473336317175 +-4.98,1.0346098956738 +-4.97,3.0041197830041 +-4.96,5.8955969587142 +-4.95,9.6561248731147 +-4.94,14.219110940263 +-4.93,19.505336691067 +-4.92,25.424207044112 +-4.91,31.875178992453 +-4.9,38.749347175147 +-4.89,45.931161328086 +-4.88,53.300248528939 +-4.87,60.733311498288 +-4.86,68.106073019619 +-4.85,75.295235813515 +-4.84,82.180426957643 +-4.83,88.646096187899 +-4.82,94.583338143335 +-4.81,99.891609817009 +-4.8,104.48031612751 +-4.79,108.27023860573 +-4.78,111.19478466575 +-4.77,113.20103775786 +-4.76,114.25059184248 +-4.75,114.32015702454 +-4.74,113.4019267973 +-4.73,111.50370110387 +-4.72,108.64876327569 +-4.71,104.87551278873 +-4.7,100.23685962905 +-4.69,94.799389818974 +-4.68,88.642315263956 +-4.67,81.856224481791 +-4.66,74.541653915793 +-4.65,66.807502363284 +-4.64,58.76931352474 +-4.63,50.547453758869 +-4.62,42.26521378146 +-4.61,34.046864245402 +-4.6,26.015695866485 +-4.59,18.292075003415 +-4.58,10.99154535667 +-4.57,4.2230057235711 +-4.56,-1.913007452567 +-4.55,-7.3259056539539 +-4.54,-11.936476975125 +-4.53,-15.678135393765 +-4.52,-18.49797092381 +-4.51,-20.357584089293 +-4.5,-21.233691558775 +-4.49,-21.118493389145 +-4.48,-20.01979608714 +-4.47,-17.960889547827 +-4.46,-14.980179810799 +-4.45,-11.130583425745 +-4.44,-6.4786929786084 +-4.43,-1.1037269384801 +-4.42,4.9037196132234 +-4.41,11.443103669559 +-4.4,18.405519869582 +-4.39,25.675417949186 +-4.38,33.132424986039 +-4.37,40.653243700723 +-4.36,48.113596876725 +-4.35,55.390187234627 +-4.34,62.362641852096 +-4.33,68.915410465027 +-4.32,74.939587712475 +-4.31,80.334630587496 +-4.3,85.009944008674 +-4.29,88.886309506919 +-4.28,91.897134496286 +-4.27,93.989502427087 +-4.26,95.125007259728 +-4.25,95.280359099143 +-4.24,94.447751438595 +-4.23,92.634984221194 +-4.22,89.865340778379 +-4.21,86.177220586118 +-4.2,81.623533630474 +-4.19,76.270865933763 +-4.18,70.198429401449 +-4.17,63.496812551322 +-4.16,56.266551826698 +-4.15,48.616546024897 +-4.14,40.662338846396 +-4.13,32.524296649903 +-4.12,24.325710151208 +-4.11,16.190850003197 +-4.1,8.2430069216637 +-4.09,0.60254726531199 +-4.08,-6.614985265379 +-4.07,-13.30069187309 +-4.06,-19.354036114505 +-4.05,-24.684429471833 +-4.04,-29.212660039611 +-4.03,-32.872141795523 +-4.02,-35.609964753504 +-4.01,-37.387729437588 +-4,-38.182152516336 +-3.99,-37.985434046638 +-3.98,-36.805380535229 +-3.97,-34.665281877177 +-3.96,-31.603544112074 +-3.95,-27.673083789611 +-3.94,-22.94049349573 +-3.93,-17.484991699522 +-3.92,-11.397173482403 +-3.91,-4.7775818513168 +-3.9,2.2648778327917 +-3.89,9.6146553058157 +-3.88,17.151377645425 +-3.87,24.751747572201 +-3.86,32.29148786963 +-3.85,39.647301258293 +-3.84,46.698814815859 +-3.83,53.330478278223 +-3.82,59.433386284438 +-3.81,64.906995827562 +-3.8,69.660711826178 +-3.79,73.615315811196 +-3.78,76.704215196672 +-3.77,78.874493432916 +-3.76,80.087744480336 +-3.75,80.320678443865 +-3.74,79.565488816765 +-3.73,77.829975542148 +-3.72,75.137421951453 +-3.71,71.526227520647 +-3.7,67.049302235792 +-3.69,61.773232119205 +-3.68,55.77722907635 +-3.67,49.151881625017 +-3.66,41.997726208523 +-3.65,34.423661624186 +-3.64,26.545231572486 +-3.63,18.482802412126 +-3.62,10.3596648589 +-3.61,2.3000895656941 +-3.6,-5.5726327516995 +-3.59,-13.138135734577 +-3.58,-20.280875682459 +-3.57,-26.891953798026 +-3.56,-32.870833637961 +-3.55,-38.126926684475 +-3.54,-42.581021032103 +-3.53,-46.16653065853 +-3.52,-48.830545577692 +-3.51,-50.534666313622 +-3.5,-51.25560953488 +-3.49,-50.985575298356 +-3.48,-49.732370110788 +-3.47,-47.51928386724 +-3.46,-44.384722607307 +-3.45,-40.381602880678 +-3.44,-35.576517273296 +-3.43,-30.048684254252 +-3.42,-23.888698904962 +-3.41,-17.19710423237 +-3.4,-10.082805597419 +-3.39,-2.6613532642184 +-3.38,4.9468798449034 +-3.37,12.618596450526 +-3.36,20.229519336138 +-3.35,27.656351222319 +-3.34,34.778719186739 +-3.33,41.481072965291 +-3.32,47.65450719703 +-3.31,53.198478875012 +-3.3,58.022392917823 +-3.29,62.04703085637 +-3.28,65.20580010471 +-3.27,67.445784113154 +-3.26,68.728576842109 +-3.25,69.030888396508 +-3.24,68.344912269613 +-3.23,66.678448404537 +-3.22,64.054780132717 +-3.21,60.512306930121 +-3.2,56.103938782811 +-3.19,50.896261713104 +-3.18,44.968487626466 +-3.17,38.411205040683 +-3.16,31.324950399074 +-3.15,23.818622498958 +-3.14,16.007765040813 +-3.13,8.0127443833441 +-3.12,-0.043148757656115 +-3.11,-8.0356437293019 +-3.1,-15.8414498158 +-3.09,-23.340200658447 +-3.08,-30.416352556763 +-3.07,-36.96100671343 +-3.06,-42.873626685129 +-3.05,-48.063623954073 +-3.04,-52.451786614796 +-3.03,-55.971528644982 +-3.02,-58.569940058568 +-3.01,-60.208621379587 +-3,-60.864289276599 +-2.99,-60.529143806494 +-2.98,-59.21099147601 +-2.97,-56.933122180211 +-2.96,-53.733941958691 +-2.95,-49.666367361141 +-2.94,-44.796990973502 +-2.93,-39.205031264866 +-2.92,-32.981083316649 +-2.91,-26.225690135793 +-2.9,-19.047757083245 +-2.89,-11.562834423111 +-2.88,-3.891295077721 +-2.87,3.8435636735055 +-2.86,11.517464614056 +-2.85,19.007110464511 +-2.84,26.19212830254 +-2.83,32.956967864037 +-2.82,39.192723788056 +-2.81,44.798853067653 +-2.8,49.684760621414 +-2.79,53.771227980246 +-2.78,56.991662558207 +-2.77,59.293147805607 +-2.76,60.637277682853 +-2.75,61.000762294877 +-2.74,60.375795134945 +-2.73,58.770176146164 +-2.72,56.207188659976 +-2.71,52.725232152346 +-2.7,48.377216609338 +-2.69,43.229728053268 +-2.68,37.361978389601 +-2.67,30.864556136125 +-2.66,23.837997736158 +-2.65,16.391201987018 +-2.64,8.6397125891848 +-2.63,0.70389590136247 +-2.62,-7.2929573606561 +-2.61,-15.226576543985 +-2.6,-22.973670932832 +-2.59,-30.413874168492 +-2.58,-37.431642550487 +-2.57,-43.918077281497 +-2.56,-49.772641918204 +-2.55,-54.904747942822 +-2.54,-59.235183449883 +-2.53,-62.697362417072 +-2.52,-65.238374858326 +-2.51,-66.819821297678 +-2.5,-67.418418403688 +-2.49,-67.026366233247 +-2.48,-65.65147129309 +-2.47,-63.317023478283 +-2.46,-60.061428828421 +-2.45,-55.937603893193 +-2.44,-51.012141258541 +-2.43,-45.364259393557 +-2.42,-39.084553379656 +-2.41,-32.273566223782 +-2.4,-25.04020328688 +-2.39,-17.500014833057 +-2.38,-9.773373784642 +-2.37,-1.9835774210558 +-2.36,5.7450970411897 +-2.35,13.289352322675 +-2.34,20.528815501069 +-2.33,27.347936312267 +-2.32,33.637809395322 +-2.31,39.29789174329 +-2.3,44.237588274757 +-2.29,48.377680520631 +-2.28,51.651575894969 +-2.27,54.006357848081 +-2.26,55.403620340373 +-2.25,55.82007347678 +-2.24,55.247910750565 +-2.23,53.694932104837 +-2.22,51.184420871036 +-2.21,47.754776525129 +-2.2,43.458909053178 +-2.19,38.363404477501 +-2.18,32.547474703562 +-2.17,26.101708249149 +-2.16,19.126641557579 +-2.15,11.731173426172 +-2.14,4.0308475554066 +-2.13,-3.8539696960129 +-2.12,-11.799987612294 +-2.11,-19.68293554055 +-2.1,-27.379522764989 +-2.09,-34.769382926907 +-2.08,-41.736972325824 +-2.07,-48.173392164421 +-2.06,-53.978105999381 +-2.05,-59.060525312915 +-2.04,-63.341438199558 +-2.03,-66.754258636995 +-2.02,-69.246076639161 +-2.01,-70.77849273009 +-2,-71.328223578342 +-1.99,-70.887469240807 +-1.98,-69.464036224222 +-1.97,-67.081214423652 +-1.96,-63.777409878691 +-1.95,-59.605539139028 +-1.94,-54.632194790607 +-1.93,-48.936595302519 +-1.92,-42.609335756179 +-1.91,-35.750959158529 +-1.9,-28.470370870518 +-1.89,-20.883121156249 +-1.88,-13.109582938054 +-1.87,-5.2730534953521 +-1.86,2.5021899553443 +-1.85,10.092850134616 +-1.84,17.378554120132 +-1.83,24.243751647786 +-1.82,30.579537356633 +-1.81,36.285368239729 +-1.8,41.270649215658 +-1.79,45.45616181533 +-1.78,48.775313452801 +-1.77,51.175187578381 +-1.76,52.617378152476 +-1.75,53.078595280022 +-1.74,52.551032454279 +-1.73,51.04248961836 +-1.72,48.576250103703 +-1.71,45.190713386274 +-1.7,40.938789452138 +-1.69,35.887064323609 +-1.68,30.114749906153 +-1.67,23.712434717559 +-1.66,16.780655201144 +-1.65,9.4283101542254 +-1.64,1.770943277284 +-1.63,-6.0710790709765 +-1.62,-13.974466174763 +-1.61,-21.814947381191 +-1.6,-29.469231974466 +-1.59,-36.816953595885 +-1.58,-43.742568544968 +-1.57,-50.137178024396 +-1.56,-55.900245590852 +-1.55,-60.941182726548 +-1.54,-65.180777526017 +-1.53,-68.552443966945 +-1.52,-71.003272063267 +-1.51,-72.494862339016 +-1.5,-73.003931462754 +-1.49,-72.52267949137 +-1.48,-71.0589129316 +-1.47,-68.63592167851 +-1.46,-65.292111771694 +-1.45,-61.080399760842 +-1.44,-56.067378231896 +-1.43,-50.332265653947 +-1.42,-43.965657108411 +-1.41,-37.068095602231 +-1.4,-29.748486496353 +-1.39,-22.122380054883 +-1.38,-14.310149200151 +-1.37,-6.4350912115772 +-1.36,1.3785166943263 +-1.35,9.0073772381402 +-1.34,16.331117497534 +-1.33,23.234187208401 +-1.32,29.607681009796 +-1.31,35.351055894775 +-1.3,40.373716781924 +-1.29,44.596445202149 +-1.28,47.952648569509 +-1.27,50.389410334313 +-1.26,51.868324456968 +-1.25,52.366101042407 +-1.24,51.874933583895 +-1.23,50.40262202454 +-1.22,47.972449695782 +-1.21,44.622816073589 +-1.2,40.406631144022 +-1.19,35.390480929399 +-1.18,29.653577335183 +-1.17,23.286508879164 +-1.16,16.389812004658 +-1.15,9.0723855089848 +-1.14,1.4497730926234 +-1.13,-6.3576588857221 +-1.12,-14.226619710259 +-1.11,-22.032838728102 +-1.1,-29.653025223457 +-1.09,-36.966812837621 +-1.08,-43.858657870114 +-1.07,-50.219661523617 +-1.06,-55.949287354813 +-1.05,-60.956946845914 +-1.04,-65.163428091453 +-1.03,-68.502145069115 +-1.02,-70.920187792837 +-1.01,-72.379156786652 +-1,-72.855768719119 +-0.99,-72.342223647129 +-0.98,-70.846328077418 +-0.97,-68.391371905053 +-0.96,-65.015761169626 +-0.95,-60.772412420828 +-0.94,-55.7279182446 +-0.93,-49.961497110035 +-0.92,-43.563744098547 +-0.91,-36.63520221708 +-0.9,-29.28477682658 +-0.89,-21.628018191152 +-0.88,-13.785299233128 +-0.87,-5.8799172319256 +-0.86,1.9638505959412 +-0.85,9.6227069710537 +-0.84,16.976278971081 +-0.83,23.909016331917 +-0.82,30.312013692617 +-0.81,36.084728046235 +-0.8,41.136564311358 +-0.79,45.388304018893 +-0.78,48.773354582898 +-0.77,51.238799453682 +-0.76,52.746232591653 +-0.75,53.272364101743 +-0.74,52.809387477216 +-0.73,51.365102661182 +-0.72,48.962792985081 +-0.71,45.640857924878 +-0.7,41.452207466637 +-0.69,36.463427632675 +-0.68,30.753730328455 +-0.67,24.413704071767 +-0.66,17.543885305928 +-0.65,10.253172828255 +-0.64,2.6571103392301 +-0.63,-5.1239358024443 +-0.62,-12.966674880975 +-0.61,-20.746836243477 +-0.6,-28.341129174156 +-0.59,-35.629187314309 +-0.58,-42.495466963456 +-0.57,-48.831069324278 +-0.56,-54.535457953458 +-0.55,-59.518044333207 +-0.54,-63.69961655806 +-0.53,-67.013588605701 +-0.52,-69.407050490067 +-0.51,-70.84160273519 +-0.5,-71.293962009631 +-0.49,-70.756328370279 +-0.48,-69.236508323872 +-0.47,-66.757791765475 +-0.46,-63.358584734681 +-0.45,-59.09180378118 +-0.44,-54.024041490915 +-0.43,-48.234516332977 +-0.42,-41.813823388781 +-0.41,-34.862505665271 +-0.4,-27.489468523392 +-0.39,-19.810262227251 +-0.38,-11.945259699178 +-0.37,-4.0177582185916 +-0.36,3.8479649979946 +-0.35,11.528612671162 +-0.34,18.903811878579 +-0.33,25.85801235614 +-0.32,32.2823087429 +-0.31,38.076158031915 +-0.3,43.148965141768 +-0.29,47.421511603369 +-0.28,50.827204830775 +-0.27,53.313128274296 +-0.26,54.840875894338 +-0.25,55.387157795835 +-0.24,54.94416747205 +-0.23,53.519704866093 +-0.22,51.137053309403 +-0.21,47.834612277947 +-0.2,43.665291757789 +-0.19,38.695677771244 +-0.18,33.004982223776 +-0.17,26.683793633175 +-0.16,19.832648442758 +-0.15,12.560445449843 +-0.14,4.9827283549099 +-0.13,-2.7801364833373 +-0.12,-10.604858349106 +-0.11,-18.36716658951 +-0.1,-25.943770488757 +-0.09,-33.214303688143 +-0.08,-40.063222487188 +-0.07,-46.381628088573 +-0.06,-52.068984048981 +-0.05,-57.034701850622 +-0.04,-61.199569588034 +-0.03,-64.497001238897 +-0.02,-66.87408681715 +-0.01,-68.292426846826 +-0,-68.728737996484 +0.01,-68.175220323015 +0.02,-66.639680333155 +0.03,-64.145407921969 +0.04,-60.730809129052 +0.05,-56.448800504093 +0.06,-51.365974633034 +0.07,-45.561549984967 +0.08,-39.126121641308 +0.09,-32.160232608998 +0.1,-24.772788248985 +0.11,-17.079338825374 +0.12,-9.2002572604959 +0.13,-1.2588408337693 +0.14,6.6206332382924 +0.15,14.31486767627 +0.16,21.703489557833 +0.17,28.670948618876 +0.18,35.108339498452 +0.19,40.915119189619 +0.2,46.000692610959 +0.21,50.285841293383 +0.22,53.703972650946 +0.23,56.202170133959 +0.24,57.742027702829 +0.25,58.300255462488 +0.26,57.869046906201 +0.27,56.456201977077 +0.28,54.085004006555 +0.29,50.793852470603 +0.3,46.635657355283 +0.31,41.677004682911 +0.32,35.997106358952 +0.33,29.686550901194 +0.34,22.845874752955 +0.35,15.583976711553 +0.36,8.0164004774687 +0.37,0.26351240940483 +0.38,-7.5513967768458 +0.39,-15.304056428397 +0.4,-22.871175829455 +0.41,-30.132388621318 +0.42,-36.972151103504 +0.43,-43.281564478696 +0.44,-48.960092303575 +0.45,-53.917146060354 +0.46,-58.073513843567 +0.47,-61.362609630897 +0.48,-63.731523436281 +0.49,-65.141855783753 +0.5,-65.570323341873 +0.51,-65.00912616753 +0.52,-63.46607076746 +0.53,-60.964447036731 +0.54,-57.542661014935 +0.55,-53.253629251761 +0.56,-48.163944333152 +0.57,-42.352824728201 +0.58,-35.910865518321 +0.59,-28.938609710456 +0.6,-21.544962665552 +0.61,-13.845474647715 +0.62,-5.9605185792759 +0.63,1.986608260347 +0.64,9.8716286546403 +0.65,17.571245324185 +0.66,24.965085346651 +0.67,31.937598457931 +0.68,38.379879297079 +0.69,44.191384857153 +0.7,49.281520056737 +0.71,53.571066426739 +0.72,56.993431381215 +0.73,59.495698370477 +0.74,61.03946135493 +0.75,61.601430439509 +0.76,61.173799117476 +0.77,59.764367331941 +0.78,57.396418414344 +0.79,54.10835184065 +0.8,49.953077596924 +0.81,44.997181705482 +0.82,39.319876071787 +0.83,33.011749213629 +0.84,26.173337574324 +0.85,18.913539951192 +0.86,11.347900044712 +0.87,3.5967842135877 +0.88,-4.2165168263885 +0.89,-11.96773242233 +0.9,-19.533571858444 +0.91,-26.793668776027 +0.92,-33.632479474599 +0.93,-39.941105156841 +0.94,-45.619009379437 +0.95,-50.575603624596 +0.96,-54.731675986854 +0.97,-58.020640443894 +0.98,-60.389587009654 +0.99,-61.800116208166 +1,-62.228944707991 +1.01,-61.668272566018 +1.02,-60.125906288984 +1.03,-57.625135771954 +1.04,-54.204367054522 +1.05,-49.916516686378 +1.06,-44.828177253464 +1.07,-39.018567224871 +1.08,-32.578281682015 +1.09,-25.607863631838 +1.1,-18.216218435288 +1.11,-10.518896356469 +1.12,-2.6362703177123 +1.13,5.3083624015629 +1.14,13.190724584844 +1.15,20.887518952712 +1.16,28.278372582835 +1.17,35.247735211109 +1.18,41.686701476586 +1.19,47.494728372324 +1.2,52.581220816907 +1.21,56.866960341243 +1.22,60.285354359389 +1.23,62.783486321656 +1.24,64.322950188449 +1.25,64.880456064703 +1.26,64.44819744368 +1.27,63.03397426849 +1.28,60.661069870573 +1.29,57.367883725895 +1.3,53.20732582052 +1.31,48.245982176763 +1.32,42.563064700088 +1.33,36.249161908286 +1.34,29.404810244672 +1.35,22.138908506565 +1.36,14.567000394446 +1.37,6.8094522670169 +1.38,-1.0104451599286 +1.39,-8.7684212335045 +1.4,-16.341185237918 +1.41,-23.608370814466 +1.42,-30.454434262667 +1.43,-36.770476785204 +1.44,-42.455961938758 +1.45,-47.420301205542 +1.46,-51.584282680089 +1.47,-54.881320340084 +1.48,-57.258504199464 +1.49,-58.67743478226 +1.5,-59.114828757034 +1.51,-58.562886180675 +1.52,-57.029413559919 +1.53,-54.537700789833 +1.54,-51.126153910009 +1.55,-46.847689470138 +1.56,-41.768900056162 +1.57,-35.969004137172 +1.58,-29.538596794583 +1.59,-22.57822103534 +1.6,-15.196782220386 +1.61,-7.5098306138294 +1.62,0.36226086200062 +1.63,8.2961949276844 +1.64,16.167694366709 +1.65,23.853461899656 +1.66,31.233124604194 +1.67,38.191132216218 +1.68,44.61857937478 +1.69,50.414923072938 +1.7,55.489568229276 +1.71,59.763296374702 +1.72,63.169514923274 +1.73,65.655307325302 +1.74,67.182267541191 +1.75,67.727105675876 +1.76,67.282015222619 +1.77,65.85479612453 +1.78,63.46873171305 +1.79,60.162221464144 +1.8,55.988175363875 +1.81,51.013179434559 +1.82,45.316445581662 +1.83,38.988562322971 +1.84,32.130066101803 +1.85,24.849855715479 +1.86,17.263474864476 +1.87,9.4912899074984 +1.88,1.6565915603396 +1.89,-6.1163495241146 +1.9,-13.704242630072 +1.91,-20.986721398827 +1.92,-27.848242129903 +1.93,-34.179906025977 +1.94,-39.881176643735 +1.95,-44.861465465387 +1.96,-49.041560585468 +1.97,-52.354875981661 +1.98,-54.748501667903 +1.99,-56.184038168228 +2,-56.638202151194 +2.01,-56.103193673693 +2.02,-54.58681924246 +2.03,-52.112368752561 +2.04,-48.71824824359 +2.05,-44.457374265236 +2.06,-39.396339403442 +2.07,-33.614362127299 +2.08,-27.202037518222 +2.09,-20.259908583154 +2.1,-12.896880683042 +2.11,-5.2285040819908 +2.12,2.6248482976688 +2.13,10.539879176517 +2.14,18.392311338043 +2.15,26.058847502824 +2.16,33.419114748533 +2.17,40.357562811062 +2.18,46.765286329465 +2.19,52.541742296799 +2.2,57.596335631649 +2.21,61.849847864922 +2.22,65.235686410676 +2.23,67.70093471922 +2.24,69.207186750961 +2.25,69.731152610833 +2.26,69.265025792099 +2.27,67.816606237868 +2.28,65.40917727958 +2.29,62.081138393201 +2.3,57.885399564795 +2.31,52.888546816677 +2.32,47.169792054313 +2.33,40.81972379549 +2.34,33.938878483525 +2.35,26.636154915738 +2.36,19.027096792608 +2.37,11.232070472838 +2.38,3.3743666722222 +2.39,-4.4217439563544 +2.4,-12.032970697099 +2.41,-19.338947191307 +2.42,-26.224129738499 +2.43,-32.579619541356 +2.44,-38.304880156561 +2.45,-43.309323066325 +2.46,-47.513736365183 +2.47,-50.851534030818 +2.48,-53.269806077168 +2.49,-54.730153028264 +2.5,-55.209291552667 +2.51,-54.699421707268 +2.52,-53.208349998801 +2.53,-50.759366322334 +2.54,-47.390876717459 +2.55,-43.155797733866 +2.56,-38.120721957498 +2.57,-32.364867857445 +2.58,-25.978830515123 +2.59,-19.063152937476 +2.6,-11.726740485449 +2.61,-4.0851434231473 +2.62,3.7412653270979 +2.63,11.629188485867 +2.64,19.454348836649 +2.65,27.093449100022 +2.66,34.426116353657 +2.67,41.336800333448 +2.68,47.716595678448 +2.69,53.464959381715 +2.7,58.491296361832 +2.71,62.716388149707 +2.72,66.073642159399 +2.73,68.510141841216 +2.74,69.987481155566 +2.75,70.482370207381 +2.76,69.987002489925 +2.77,68.509177946308 +2.78,66.072179907969 +2.79,62.714407850874 +2.8,58.488771761086 +2.81,53.461857660922 +2.82,47.712877455847 +2.83,41.332419663647 +2.84,34.421020727642 +2.85,27.087579445149 +2.86,19.447639516647 +2.87,11.621567300842 +2.88,3.7326535135245 +2.89,-4.0948311924183 +2.9,-11.737596101194 +2.91,-19.075274854098 +2.92,-25.992323750651 +2.93,-32.379843993534 +2.94,-38.13729913943 +2.95,-43.174100670551 +2.96,-47.411036681429 +2.97,-50.781521149751 +2.98,-53.232644089451 +2.99,-54.726006024563 +3,-55.238323623647 +3.01,-54.761796943593 +3.02,-53.304232491137 +3.03,-50.888920161345 +3.04,-47.55426599381 +3.05,-43.353186538222 +3.06,-38.352274380524 +3.07,-32.630747989806 +3.08,-26.279202447483 +3.09,-19.3981807605 +3.1,-12.096588289801 +3.11,-4.4899752994933 +3.12,3.3012852880936 +3.13,11.15389619354 +3.14,18.943580200333 +3.15,26.547040029054 +3.16,33.843902757372 +3.17,40.718618121181 +3.18,47.062280759534 +3.19,52.774347665489 +3.2,57.76422375763 +3.21,61.952690566864 +3.22,65.27315550725 +3.23,67.672702029096 +3.24,69.11292409281 +3.25,69.570531803325 +3.26,69.037718653904 +3.27,67.522284587656 +3.28,65.047512936022 +3.29,61.651803174967 +3.3,57.388065290554 +3.31,52.3228853051 +3.32,46.535475124069 +3.33,40.11642326525 +3.34,33.16626617196 +3.35,25.793902641516 +3.36,18.1148763744 +3.37,10.249553729315 +3.38,2.3212254220526 +3.39,-5.5458378945002 +3.4,-13.22834550455 +3.41,-20.605931049395 +3.42,-27.563050828553 +3.43,-33.990806044706 +3.44,-39.788660254537 +3.45,-44.866024940257 +3.46,-49.143688196401 +3.47,-52.555064000652 +3.48,-55.047242366947 +3.49,-56.581823819319 +3.5,-57.135525026328 +3.51,-56.700546044863 +3.52,-55.284693381661 +3.53,-52.911256931789 +3.54,-49.618642734838 +3.55,-45.459767340499 +3.56,-40.501223334714 +3.57,-34.822229186574 +3.58,-28.513379977495 +3.59,-21.675218714419 +3.6,-14.416650758293 +3.61,-6.8532263732229 +3.62,0.89468151846182 +3.63,8.7037756373413 +3.64,16.449778766903 +3.65,24.009393627727 +3.66,31.262247297484 +3.67,38.092789512067 +3.68,44.39211491053 +3.69,50.059680485929 +3.7,55.004891156849 +3.71,59.148528454199 +3.72,62.423999792035 +3.73,64.778388620666 +3.74,66.173288900501 +3.75,66.585410736471 +3.76,66.00694762184 +3.77,64.445699499719 +3.78,61.924949701545 +3.79,58.483097703286 +3.8,54.173053491005 +3.81,49.061403087017 +3.82,43.227358396787 +3.83,36.761507938104 +3.84,29.764388154285 +3.85,22.344897842648 +3.86,14.618580703673 +3.87,6.7058030960631 +3.88,-1.2701442643879 +3.89,-9.1849907247945 +3.9,-16.915445569364 +3.91,-24.341142439392 +3.92,-31.346537634399 +3.93,-37.822732357066 +3.94,-43.669190164076 +3.95,-48.79532253764 +3.96,-53.121917572293 +3.97,-56.582389245717 +3.98,-59.123827571851 +3.99,-60.707833074726 +4,-61.311122422904 +4.01,-60.925895673272 +4.02,-59.559959332569 +4.03,-57.236603295859 +4.04,-53.994233602736 +4.05,-49.88576680289 +4.06,-44.977795482262 +4.07,-39.349538109944 +4.08,-33.091589767352 +4.09,-26.304493461429 +4.1,-19.09715455312 +4.11,-11.58512330653 +4.12,-3.8887726439918 +4.13,3.8686001550768 +4.14,11.562717874163 +4.15,19.070283233847 +4.16,26.270923311799 +4.17,33.049087843911 +4.18,39.29587146924 +4.19,44.91073118084 +4.2,49.803071897296 +4.21,53.893675149517 +4.22,57.115948351558 +4.23,59.416974953732 +4.24,60.758348916443 +4.25,61.116780344625 +4.26,60.484462731541 +4.27,58.869196020301 +4.28,56.294263542344 +4.29,52.798064773638 +4.3,48.433509700243 +4.31,43.267184344478 +4.32,37.378300611805 +4.33,30.857447020014 +4.34,23.805160012422 +4.35,16.330338386348 +4.36,8.5485258422693 +4.37,0.58008873889224 +4.38,-7.4516822079914 +4.39,-15.422516345496 +4.4,-23.209122957828 +4.41,-30.691135686284 +4.42,-37.753010830384 +4.43,-44.285849592809 +4.44,-50.189115530242 +4.45,-55.372220124893 +4.46,-59.755951471298 +4.47,-63.273723547141 +4.48,-65.872626366357 +4.49,-67.51426045298 +4.5,-68.175342475569 +4.51,-67.848072491015 +4.52,-66.540257006054 +4.53,-64.275185915751 +4.54,-61.0912652597 +4.55,-57.04141158759 +4.56,-52.192217485364 +4.57,-46.622901422112 +4.58,-40.424058479251 +4.59,-33.696231663723 +4.6,-26.548326336475 +4.61,-19.09589276161 +4.62,-11.459303861462 +4.63,-3.761856915448 +4.64,3.8721708599184 +4.65,11.319482185219 +4.66,18.459704138121 +4.67,25.17728645452 +4.68,31.36332377347 +4.69,36.917273088027 +4.7,41.748539316775 +4.71,45.777903990623 +4.72,48.938774523627 +4.73,51.178234366098 +4.74,52.457877478442 +4.75,52.754413965592 +4.76,52.060037320811 +4.77,50.382547487209 +4.78,47.745227796225 +4.79,44.186477723827 +4.8,39.759207256076 +4.81,34.530002415289 +4.82,28.578075106929 +4.83,21.994013848787 +4.84,14.878355084178 +4.85,7.339997610422 +4.86,-0.50551487200312 +4.87,-8.5378160043916 +4.88,-16.633615070952 +4.89,-24.668641418798 +4.9,-32.519604332137 +4.91,-40.066137452264 +4.92,-47.192697078701 +4.93,-53.790384414127 +4.94,-59.758663015227 +4.95,-65.00694436421 +4.96,-69.456016555612 +4.97,-73.039293567116 +4.98,-75.703865412659 +4.99,-77.411332616273 +5,-78.138411846519 diff --git a/test/tests/functions/baseline_correction/sine_wave.py b/test/tests/functions/baseline_correction/sine_wave.py new file mode 100755 index 0000000000..e7e64a7dfa --- /dev/null +++ b/test/tests/functions/baseline_correction/sine_wave.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +import numpy as np + +dt = 0.01 +time = np.arange(-5.0, 5.0 + dt, dt) +accel = 80 * np.square(np.pi) * np.sin(4.0 * np.pi * time) + +np.savetxt("sine_wave.csv", time, fmt="%0.2f", delimiter=",", newline=", ") +with open("sine_wave.csv", "a") as file: + file.write("\n") + np.savetxt(file, accel, fmt='%0.18e', delimiter=",", newline=", ") diff --git a/test/tests/functions/baseline_correction/test.i b/test/tests/functions/baseline_correction/test.i new file mode 100644 index 0000000000..4559d863e9 --- /dev/null +++ b/test/tests/functions/baseline_correction/test.i @@ -0,0 +1,64 @@ +[GlobalParams] + execute_on = INITIAL +[] + +[Mesh] + type = GeneratedMesh + dim = 1 +[] + +[Problem] + solve = false +[] + +[Functions] + [nominal_accel] + type = PiecewiseLinear + data_file = sine_wave.csv + [] + [type_A3] + type = BaselineCorrection + function = nominal_accel + [] + [type_V3] + type = BaselineCorrection + function = nominal_accel + vel_fit_order = 3 + series_output = velocity + [] + [type_A13V13D11] + type = BaselineCorrection + function = nominal_accel + accel_fit_order = 13 + vel_fit_order = 13 + disp_fit_order = 11 + series_output = displacement + [] +[] + +[Executioner] + type = Steady +[] + +[VectorPostprocessors] + [accel] + type = PiecewiseFunctionTabulate + function = type_A3 + contains_complete_history = true + [] + [vel] + type = PiecewiseFunctionTabulate + function = type_V3 + contains_complete_history = true + [] + [disp] + type = PiecewiseFunctionTabulate + function = type_A13V13D11 + contains_complete_history = true + [] +[] + +[Outputs] + csv = true + file_base = corrected +[] diff --git a/test/tests/functions/baseline_correction/tests b/test/tests/functions/baseline_correction/tests new file mode 100644 index 0000000000..a98dfa2391 --- /dev/null +++ b/test/tests/functions/baseline_correction/tests @@ -0,0 +1,45 @@ +[Tests] + design = functions/BaselineCorrection.md + issues = '#296' + + [prepare_data] + type = RunCommand + command = ./sine_wave.py + required_python_packages = numpy + + requirement = "Generate a file containing the time series data for the correction_types test." + [] + + [correction_types] + type = CSVDiff + input = test.i + csvdiff = 'corrected_accel.csv corrected_vel.csv corrected_disp.csv' + prereq = prepare_data + + requirement = "The system shall support applying various types of baseline corrections to " + "discrete-time accelerations and evaluating the corrected acceleration, " + "velocity, and displacement time histories." + [] + + [errors] + requirement = "The system shall report a reasonable error message when" + + [bad_function_type] + type = RunException + input = errors.i + cli_args = Functions/error_test/function=bad_function + expect_err = "This must be the name of a PiecewiseLinear object" + + detail = "the provided function is not an instance of PiecewiseLinear; and" + [] + [tight_error_on_residual] + type = RunException + input = errors.i + cli_args = Functions/error_test/error_on_residual=1e-16 + expect_err = "Failed to compute a least squares polynomial of degree \(10\) within the " + "specified tolerance \(1e-16 <" + + detail = "the relative residual error tolerance is smaller than what the solver achieved." + [] + [] +[]