R Under development (unstable) (2024-07-29 r86934 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(longmemo) > > set.seed(162) > > simARMA0(120, 0.6) Time Series: Start = 1 End = 120 Frequency = 1 [1] 0.08473374 -0.69076706 -0.85908193 -0.34274587 -1.09320166 1.04250605 [7] 2.07909127 1.29441754 0.79575123 -0.43774998 1.56242700 0.60511017 [13] -1.51673524 1.50481040 -0.73948946 -0.25572048 0.88334999 -0.08112756 [19] -1.40119074 0.59376407 1.24844145 0.19574673 -0.64006369 -0.53410934 [25] 0.34609397 -1.29370598 1.80310469 0.04717533 -1.08695183 0.45012773 [31] 1.40779411 -1.07013058 0.74479179 3.03343465 0.40877585 -1.37562879 [37] -0.79779482 -0.37787640 1.61106850 0.20453991 -0.05142130 0.45066001 [43] 1.70395043 -0.63549126 0.16663249 2.21801071 -0.37957251 0.84016096 [49] -0.65227549 0.21181228 -0.63673029 -1.31842254 -0.47780662 0.20553907 [55] -0.70968699 0.20632859 -0.99148027 -0.11628572 0.14075302 -0.78442438 [61] -1.39817656 1.48648229 0.79557898 -1.09173319 0.98756995 1.82983577 [67] 0.12744004 -1.23515848 -0.87686411 -0.91923275 -0.31597167 -1.35583023 [73] -0.26854606 0.66896025 1.08800898 -1.56171698 0.15126725 -1.05056176 [79] -0.59460847 0.88799641 -0.08266450 0.63290835 -0.16290139 -2.20943578 [85] 2.01275760 0.26458834 0.49778504 -1.27384179 -0.59658944 -0.57932515 [91] 0.39995844 -2.03432414 0.21900191 -1.26487497 0.65881212 -2.54382723 [97] -0.85580503 0.32486063 -0.97656646 -0.06865534 -0.12380157 -1.29457249 [103] -0.91952909 -0.35019863 1.26521216 1.06526309 0.24650042 -1.14945512 [109] 0.97160035 0.24986380 0.34798918 0.02309976 -0.81676938 1.15195247 [115] -0.68729118 -1.59674478 1.21078198 -0.38242932 1.37040916 1.99404917 > simARMA0(120, 0.9) Time Series: Start = 1 End = 120 Frequency = 1 [1] 1.40922449 1.18703989 0.40721081 1.59090876 1.88640657 2.00019479 [7] 1.71883367 1.08354780 0.15663696 0.41856828 0.48870366 1.43259957 [13] 2.07897780 0.94028639 0.36915532 2.24791968 2.49336185 1.98408364 [19] 2.98220456 0.98621752 1.51628233 1.13803967 2.43164572 1.35061588 [25] -0.39391065 0.77640493 0.94637898 0.62173247 2.44991733 -1.36458822 [31] -0.32719124 -1.75286407 -0.13703056 0.14286930 -0.48524572 0.19089005 [37] -0.33206562 1.04123442 0.27283483 0.96434024 0.04257743 0.66829586 [43] 1.97908344 2.63320742 0.35885778 -0.27210278 -0.30149518 0.23830537 [49] 0.21375102 -0.26277881 -1.37643938 -1.01486064 -0.29227851 -0.68260947 [55] -1.06930582 -0.31122613 0.22095079 -0.95675021 -1.65175399 -0.47095996 [61] -0.07121701 0.99055395 -0.74713446 -0.05729737 -1.38314252 -1.87005319 [67] -3.39439310 -1.68936992 -1.00833807 0.04803609 0.69881976 1.05587161 [73] -0.93285582 -2.27651784 0.42013813 0.50874744 -0.66741674 -1.47409105 [79] -3.21048964 -2.85389063 -1.62939732 -0.29626851 -0.54652820 -2.26502598 [85] -2.60182435 -1.47824467 -0.99514541 -0.62033864 0.21266302 -0.67857360 [91] -2.16721255 -0.92474024 -1.30943738 -0.87473084 -0.69761557 -1.79419971 [97] -1.52510457 -0.42206727 -1.27472456 -0.12304125 -1.72601399 -1.24350032 [103] -1.79762041 -0.84520080 -0.10893699 -0.50492260 -1.23185552 -0.72271754 [109] -1.10895402 -0.56019233 -0.47196321 -1.97002187 -2.68595134 -1.89575649 [115] -1.88884026 0.72765214 -0.69955896 0.77334342 1.42542241 -0.09113615 > > > simFGN0(120, 0.6) Time Series: Start = 1 End = 120 Frequency = 1 [1] 0.797277604 0.171478047 1.959733290 0.136278013 0.483761205 [6] -0.570351437 -0.184443646 -0.188905652 -0.612598499 -0.108908503 [11] -0.758615856 -0.772893823 0.703301989 0.952865775 -0.577939597 [16] 0.073512008 2.036223851 -0.798730198 -0.336224085 1.263811325 [21] 0.844532973 0.150672431 0.373845117 -0.503141119 0.125799335 [26] 0.274766252 -0.392315835 1.429404009 0.861251271 0.009857756 [31] -0.728967086 0.537497010 0.509814237 1.044778815 1.332552635 [36] 0.656754149 0.300613670 -0.589584088 -1.068721910 -0.987194810 [41] -1.291217659 -0.267856286 -0.501416099 0.475396814 -1.341229742 [46] 0.369712402 0.142572941 0.791210476 0.200537302 0.803633747 [51] -0.188872575 -0.351329245 -0.542263084 0.390195150 -2.703173963 [56] -1.264050398 -1.138201739 -1.703844246 -0.899924117 -0.722345573 [61] 0.481090445 -1.228260788 0.050257606 0.008161715 -0.700716164 [66] 0.448084275 -0.938477490 -1.229335360 -0.758466324 -1.727214416 [71] -1.602945149 -0.645186418 -1.285315440 -2.097532945 -1.651488495 [76] -0.892331509 -1.788273236 -0.387598825 0.102859855 0.112709045 [81] -0.472941025 1.478601123 0.082094274 0.057259328 1.296760107 [86] -1.491427654 1.051089498 -0.468775025 -1.137423019 -0.291338146 [91] 2.008114082 -0.726957593 -1.070532444 -0.029159565 -1.783069867 [96] -2.576735837 -1.354863976 -0.216980221 -1.521089013 0.284888500 [101] 0.804523113 0.001752155 1.134111161 -1.181078675 -1.163775667 [106] 0.853570062 0.842617215 0.330108510 -0.525356014 0.232984407 [111] -0.007619131 0.074908310 0.376408436 -0.723432366 -2.919100036 [116] -0.998321244 -1.392376484 -0.863783959 -0.231809924 0.083535613 > simFGN0(120, 0.9) Time Series: Start = 1 End = 120 Frequency = 1 [1] -1.20371199 -2.33194855 -1.18116861 -1.41669510 -1.07789805 -0.24112312 [7] 0.38602617 0.39679276 -0.97039311 0.36881294 -0.48476747 -0.60523787 [13] -0.50020189 -0.33066830 -0.60354529 -0.88002098 -0.45433023 0.23912914 [19] 1.00600202 0.11671041 -1.03443703 -0.79498561 -0.59832852 -1.16026051 [25] 0.01055428 -0.49108331 0.79822418 -0.89911131 0.67144382 0.04318246 [31] -0.03806159 -0.01915624 -1.52609596 0.60221298 0.92259599 -0.56112374 [37] -1.65747389 -0.78820122 -1.03204525 -0.22715712 -1.64083189 -1.75608334 [43] -1.89736360 -0.87461181 -1.47490313 -1.10933073 -1.12005042 -0.99790024 [49] -1.66743178 -0.91410456 -0.85698077 -0.81678385 -0.75540194 -0.28099431 [55] -0.27589501 -1.04327181 -0.43596698 -0.46357546 -1.02725131 -0.89012414 [61] -0.45757507 -0.63794327 -0.33970966 -0.25856679 -0.13047597 0.60386113 [67] -0.26634749 -0.75575815 0.97989487 -0.13405328 0.41743717 -0.56949740 [73] -0.44287823 -1.25693111 -1.36536190 -0.39348203 0.02718510 0.54447545 [79] 0.51514555 0.60281410 -1.13231467 -0.05644552 0.60062609 -0.13618071 [85] -0.70955488 -2.44721402 -1.09519234 -0.41249277 -0.67235104 -0.26616252 [91] 0.35507954 1.08190220 -0.26550099 -0.21147242 -0.64494761 -0.83934248 [97] -1.52782848 -1.65885665 -0.18620068 0.10854926 -0.04235178 -0.70653695 [103] -0.49560740 -0.64875591 -0.05039116 0.26866322 0.32620210 0.67122474 [109] 0.52877063 -0.59230826 1.22943412 0.61202483 0.68580880 0.59368285 [115] 0.40029092 1.07380068 -0.01598942 0.09109121 0.76262104 0.13244044 > > ## .5 and 1.0 do not work yet! > > > proc.time() user system elapsed 0.14 0.09 0.21