/usr/share/doc/libbrahe-dev/html/a00004.html is in libbrahe-dev 1.3.2-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Brahe</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<h1 align="center" color="#606080">
<b>Brahe</b> - a heterogenous collection of mathematical tools
</h1>
<h2 align="center">
<a href="index.html">Main Index</a><br>
<a href="http://www.coyotegulch.com">Home Page</a>
</h2>
<p align="center">
Created by <a href="mailto:scott.ladd@@coyotegulch.com">Scott Robert Ladd</a><br>
</p>
<hr>
<!-- Generated by Doxygen 1.8.11 -->
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#enum-members">Enumerations</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">mathtools.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <stddef.h></code><br />
<code>#include <math.h></code><br />
<code>#include <limits.h></code><br />
<code>#include <float.h></code><br />
<code>#include <stdbool.h></code><br />
<code>#include <stdint.h></code><br />
</div>
<p><a href="a00004_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00002.html">brahe_statistics_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Structure containing statistical values calculate from a double array. <a href="a00002.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="a00003.html">brahe_wave_factor_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Sine wave definition. <a href="a00003.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a560947c90102e2d8c8bddfcdc8d9aebf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a560947c90102e2d8c8bddfcdc8d9aebf">BRAHE_E</a>   2.71828182845904523536028747135</td></tr>
<tr class="memdesc:a560947c90102e2d8c8bddfcdc8d9aebf"><td class="mdescLeft"> </td><td class="mdescRight">e (natural logarithm base <a href="#a560947c90102e2d8c8bddfcdc8d9aebf">More...</a><br /></td></tr>
<tr class="separator:a560947c90102e2d8c8bddfcdc8d9aebf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2acb48c25034f68df587e0f0aa629b8c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a2acb48c25034f68df587e0f0aa629b8c">BRAHE_LOG2_E</a>   1.44269504088896340735992468100</td></tr>
<tr class="memdesc:a2acb48c25034f68df587e0f0aa629b8c"><td class="mdescLeft"> </td><td class="mdescRight">log_2 (e) <a href="#a2acb48c25034f68df587e0f0aa629b8c">More...</a><br /></td></tr>
<tr class="separator:a2acb48c25034f68df587e0f0aa629b8c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8a4b9878f8d4190d85a47fed511d1ae"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#af8a4b9878f8d4190d85a47fed511d1ae">BRAHE_LOG10_E</a>   0.43429448190325182765112891892</td></tr>
<tr class="memdesc:af8a4b9878f8d4190d85a47fed511d1ae"><td class="mdescLeft"> </td><td class="mdescRight">log_10 (e) <a href="#af8a4b9878f8d4190d85a47fed511d1ae">More...</a><br /></td></tr>
<tr class="separator:af8a4b9878f8d4190d85a47fed511d1ae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0f30c1a745dc06e0b8c3611c03b7d4e5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a0f30c1a745dc06e0b8c3611c03b7d4e5">BRAHE_SQRT_2</a>   1.41421356237309504880168872421</td></tr>
<tr class="memdesc:a0f30c1a745dc06e0b8c3611c03b7d4e5"><td class="mdescLeft"> </td><td class="mdescRight">sqrt(2) <a href="#a0f30c1a745dc06e0b8c3611c03b7d4e5">More...</a><br /></td></tr>
<tr class="separator:a0f30c1a745dc06e0b8c3611c03b7d4e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0ab8e9aa2a0e7f80b40b8b6bd9b79659"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a0ab8e9aa2a0e7f80b40b8b6bd9b79659">BRAHE_SQRT_HALF</a>   0.70710678118654752440084436210</td></tr>
<tr class="memdesc:a0ab8e9aa2a0e7f80b40b8b6bd9b79659"><td class="mdescLeft"> </td><td class="mdescRight">sqrt(1/2) <a href="#a0ab8e9aa2a0e7f80b40b8b6bd9b79659">More...</a><br /></td></tr>
<tr class="separator:a0ab8e9aa2a0e7f80b40b8b6bd9b79659"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad4551041fd2bbaa15958e2c48507ef3e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ad4551041fd2bbaa15958e2c48507ef3e">BRAHE_SQRT_3</a>   1.73205080756887729352744634151</td></tr>
<tr class="memdesc:ad4551041fd2bbaa15958e2c48507ef3e"><td class="mdescLeft"> </td><td class="mdescRight">sqrt(3) <a href="#ad4551041fd2bbaa15958e2c48507ef3e">More...</a><br /></td></tr>
<tr class="separator:ad4551041fd2bbaa15958e2c48507ef3e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4e1fedcefdcf7671b203721214900b78"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a4e1fedcefdcf7671b203721214900b78">BRAHE_PI</a>   3.14159265358979323846264338328</td></tr>
<tr class="memdesc:a4e1fedcefdcf7671b203721214900b78"><td class="mdescLeft"> </td><td class="mdescRight">pi (180 deg) <a href="#a4e1fedcefdcf7671b203721214900b78">More...</a><br /></td></tr>
<tr class="separator:a4e1fedcefdcf7671b203721214900b78"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4fff0d018f3605f8d29a817c49c98482"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a4fff0d018f3605f8d29a817c49c98482">BRAHE_TAU</a>   6.28318530717958647692528676656</td></tr>
<tr class="memdesc:a4fff0d018f3605f8d29a817c49c98482"><td class="mdescLeft"> </td><td class="mdescRight">tau (2 * pi) <a href="#a4fff0d018f3605f8d29a817c49c98482">More...</a><br /></td></tr>
<tr class="separator:a4fff0d018f3605f8d29a817c49c98482"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae07b001cefb9e3a6cf8bf371c56119c4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ae07b001cefb9e3a6cf8bf371c56119c4">BRAHE_PI_DIV_2</a>   1.57079632679489661923132169164</td></tr>
<tr class="memdesc:ae07b001cefb9e3a6cf8bf371c56119c4"><td class="mdescLeft"> </td><td class="mdescRight">pi/2 (90 deg) <a href="#ae07b001cefb9e3a6cf8bf371c56119c4">More...</a><br /></td></tr>
<tr class="separator:ae07b001cefb9e3a6cf8bf371c56119c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ad477fec1152a9e44d95dbae4c558cb"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a8ad477fec1152a9e44d95dbae4c558cb">BRAHE_PI_DIV_3</a>   1.04719755119659774615421446109</td></tr>
<tr class="memdesc:a8ad477fec1152a9e44d95dbae4c558cb"><td class="mdescLeft"> </td><td class="mdescRight">pi/3 (60 deg) <a href="#a8ad477fec1152a9e44d95dbae4c558cb">More...</a><br /></td></tr>
<tr class="separator:a8ad477fec1152a9e44d95dbae4c558cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4b1d771c20ae91ca703f563ff615d6d3"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a4b1d771c20ae91ca703f563ff615d6d3">BRAHE_PI_DIV_4</a>   0.78539816339744830961566084582</td></tr>
<tr class="memdesc:a4b1d771c20ae91ca703f563ff615d6d3"><td class="mdescLeft"> </td><td class="mdescRight">pi/4 (45 deg) <a href="#a4b1d771c20ae91ca703f563ff615d6d3">More...</a><br /></td></tr>
<tr class="separator:a4b1d771c20ae91ca703f563ff615d6d3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a996f916dc16cf561c6f8a444829b8de4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a996f916dc16cf561c6f8a444829b8de4">BRAHE_PI_DIV_6</a>   0.52359877559829887307710723055</td></tr>
<tr class="memdesc:a996f916dc16cf561c6f8a444829b8de4"><td class="mdescLeft"> </td><td class="mdescRight">pi/6 (30 deg) <a href="#a996f916dc16cf561c6f8a444829b8de4">More...</a><br /></td></tr>
<tr class="separator:a996f916dc16cf561c6f8a444829b8de4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1723fc41b28843e6d1aa15028c16a211"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a1723fc41b28843e6d1aa15028c16a211">BRAHE_PI_DIV_9</a>   0.34906585039886591538473815370</td></tr>
<tr class="memdesc:a1723fc41b28843e6d1aa15028c16a211"><td class="mdescLeft"> </td><td class="mdescRight">pi/9 (20 deg) <a href="#a1723fc41b28843e6d1aa15028c16a211">More...</a><br /></td></tr>
<tr class="separator:a1723fc41b28843e6d1aa15028c16a211"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a54177483776db52a388c3e652a8b5982"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a54177483776db52a388c3e652a8b5982">BRAHE_PI_DIV_12</a>   0.26179938779914943653855361527</td></tr>
<tr class="memdesc:a54177483776db52a388c3e652a8b5982"><td class="mdescLeft"> </td><td class="mdescRight">pi / 12 (15 deg) <a href="#a54177483776db52a388c3e652a8b5982">More...</a><br /></td></tr>
<tr class="separator:a54177483776db52a388c3e652a8b5982"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6bc29aa9fac151ab7971cd15a638b67f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a6bc29aa9fac151ab7971cd15a638b67f">BRAHE_PI_DIV_18</a>   0.17453292519943295769236907685</td></tr>
<tr class="memdesc:a6bc29aa9fac151ab7971cd15a638b67f"><td class="mdescLeft"> </td><td class="mdescRight">pi / 18 (10 deg) <a href="#a6bc29aa9fac151ab7971cd15a638b67f">More...</a><br /></td></tr>
<tr class="separator:a6bc29aa9fac151ab7971cd15a638b67f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4535b7b7be92cbad9d6425693c11643e"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a4535b7b7be92cbad9d6425693c11643e">BRAHE_PI_DIV_36</a>   0.08726646259971647884618453842</td></tr>
<tr class="memdesc:a4535b7b7be92cbad9d6425693c11643e"><td class="mdescLeft"> </td><td class="mdescRight">pi / 36 (5 deg) <a href="#a4535b7b7be92cbad9d6425693c11643e">More...</a><br /></td></tr>
<tr class="separator:a4535b7b7be92cbad9d6425693c11643e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac172b8f64859f9bf54464a3a6bc3d7c"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#aac172b8f64859f9bf54464a3a6bc3d7c">BRAHE_DEG_PER_RAD</a>   57.2957795130823208767981548141</td></tr>
<tr class="memdesc:aac172b8f64859f9bf54464a3a6bc3d7c"><td class="mdescLeft"> </td><td class="mdescRight">degrees per radian <a href="#aac172b8f64859f9bf54464a3a6bc3d7c">More...</a><br /></td></tr>
<tr class="separator:aac172b8f64859f9bf54464a3a6bc3d7c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a81b271b7f56a5ddd3b9fe307778d0821"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a81b271b7f56a5ddd3b9fe307778d0821">BRAHE_RAD_PER_DEG</a>   0.01745329251994329576923690768</td></tr>
<tr class="memdesc:a81b271b7f56a5ddd3b9fe307778d0821"><td class="mdescLeft"> </td><td class="mdescRight">radians per degree <a href="#a81b271b7f56a5ddd3b9fe307778d0821">More...</a><br /></td></tr>
<tr class="separator:a81b271b7f56a5ddd3b9fe307778d0821"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a83b4f9fccb40a1f78bb88aacc8e84cab"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a83b4f9fccb40a1f78bb88aacc8e84cab">BRAHE_SQRT_PI</a>   1.77245385090551602729816748334</td></tr>
<tr class="memdesc:a83b4f9fccb40a1f78bb88aacc8e84cab"><td class="mdescLeft"> </td><td class="mdescRight">sqrt(pi) <a href="#a83b4f9fccb40a1f78bb88aacc8e84cab">More...</a><br /></td></tr>
<tr class="separator:a83b4f9fccb40a1f78bb88aacc8e84cab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc">BRAHE_TWO_DIV_SQRT_PI</a>   1.12837916709551257389615890312</td></tr>
<tr class="memdesc:abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc"><td class="mdescLeft"> </td><td class="mdescRight">2/sqrt(pi) <a href="#abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc">More...</a><br /></td></tr>
<tr class="separator:abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf7d7206f6f89332832ea82f3955e1c9"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#abf7d7206f6f89332832ea82f3955e1c9">BRAHE_ONE_DIV_PI</a>   0.31830988618379067153776752675</td></tr>
<tr class="memdesc:abf7d7206f6f89332832ea82f3955e1c9"><td class="mdescLeft"> </td><td class="mdescRight">1/pi <a href="#abf7d7206f6f89332832ea82f3955e1c9">More...</a><br /></td></tr>
<tr class="separator:abf7d7206f6f89332832ea82f3955e1c9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6f9592c1e49a672372f56cdd1a617d5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ab6f9592c1e49a672372f56cdd1a617d5">BRAHE_TWO_DIV_PI</a>   0.63661977236758134307553505349</td></tr>
<tr class="memdesc:ab6f9592c1e49a672372f56cdd1a617d5"><td class="mdescLeft"> </td><td class="mdescRight">2/pi <a href="#ab6f9592c1e49a672372f56cdd1a617d5">More...</a><br /></td></tr>
<tr class="separator:ab6f9592c1e49a672372f56cdd1a617d5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab80971083813a13b7f886efb0016f27a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ab80971083813a13b7f886efb0016f27a">BRAHE_LN_10</a>   2.30258509299404568401799145468</td></tr>
<tr class="memdesc:ab80971083813a13b7f886efb0016f27a"><td class="mdescLeft"> </td><td class="mdescRight">ln(10) <a href="#ab80971083813a13b7f886efb0016f27a">More...</a><br /></td></tr>
<tr class="separator:ab80971083813a13b7f886efb0016f27a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a16ad8b699fa21a939786c8c512cff228"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a16ad8b699fa21a939786c8c512cff228">BRAHE_LN_2</a>   0.69314718055994530941723212146</td></tr>
<tr class="memdesc:a16ad8b699fa21a939786c8c512cff228"><td class="mdescLeft"> </td><td class="mdescRight">ln(2) <a href="#a16ad8b699fa21a939786c8c512cff228">More...</a><br /></td></tr>
<tr class="separator:a16ad8b699fa21a939786c8c512cff228"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a13004f988698d0e3edde4c35faa2ef"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a4a13004f988698d0e3edde4c35faa2ef">BRAHE_LOG_2</a>   0.30102999566398119521373889472</td></tr>
<tr class="memdesc:a4a13004f988698d0e3edde4c35faa2ef"><td class="mdescLeft"> </td><td class="mdescRight">log(2) <a href="#a4a13004f988698d0e3edde4c35faa2ef">More...</a><br /></td></tr>
<tr class="separator:a4a13004f988698d0e3edde4c35faa2ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9b68fff5200827cfc970b9e0f7c941a"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ab9b68fff5200827cfc970b9e0f7c941a">BRAHE_LN_PI</a>   1.14472988584940017414342735135</td></tr>
<tr class="memdesc:ab9b68fff5200827cfc970b9e0f7c941a"><td class="mdescLeft"> </td><td class="mdescRight">ln(pi) <a href="#ab9b68fff5200827cfc970b9e0f7c941a">More...</a><br /></td></tr>
<tr class="separator:ab9b68fff5200827cfc970b9e0f7c941a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a71b1569ecfc42e0895108e4f506813c4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a71b1569ecfc42e0895108e4f506813c4">BRAHE_EULER</a>   0.57721566490153286060651209008</td></tr>
<tr class="memdesc:a71b1569ecfc42e0895108e4f506813c4"><td class="mdescLeft"> </td><td class="mdescRight">Euler constant. <a href="#a71b1569ecfc42e0895108e4f506813c4">More...</a><br /></td></tr>
<tr class="separator:a71b1569ecfc42e0895108e4f506813c4"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:af6d1e561bc299e87adcde2b8075437d9"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="a00004.html#a27c66fb5daf87a5e45d8e80c15683e32">brahe_pretty_format_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#af6d1e561bc299e87adcde2b8075437d9">brahe_pretty_format</a></td></tr>
<tr class="memdesc:af6d1e561bc299e87adcde2b8075437d9"><td class="mdescLeft"> </td><td class="mdescRight">Formats for pretty-printing integers. <a href="#af6d1e561bc299e87adcde2b8075437d9">More...</a><br /></td></tr>
<tr class="separator:af6d1e561bc299e87adcde2b8075437d9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87c74ee44dc77bf6d299940f41c45c2a"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="a00002.html">brahe_statistics_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a87c74ee44dc77bf6d299940f41c45c2a">brahe_statistics</a></td></tr>
<tr class="memdesc:a87c74ee44dc77bf6d299940f41c45c2a"><td class="mdescLeft"> </td><td class="mdescRight">Structure containing statistical values calculate from a double array. <a href="#a87c74ee44dc77bf6d299940f41c45c2a">More...</a><br /></td></tr>
<tr class="separator:a87c74ee44dc77bf6d299940f41c45c2a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a12a41b5db8722b0e2b834839d5ccdccb"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a12a41b5db8722b0e2b834839d5ccdccb">brahe_round_nearest</a> (const double x)</td></tr>
<tr class="memdesc:a12a41b5db8722b0e2b834839d5ccdccb"><td class="mdescLeft"> </td><td class="mdescRight">Round to nearest value. <a href="#a12a41b5db8722b0e2b834839d5ccdccb">More...</a><br /></td></tr>
<tr class="separator:a12a41b5db8722b0e2b834839d5ccdccb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a717b79e8bf4bbd4048bf86996dd7cb85"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a717b79e8bf4bbd4048bf86996dd7cb85">brahe_sigdig</a> (const double x, const uint16_t n)</td></tr>
<tr class="memdesc:a717b79e8bf4bbd4048bf86996dd7cb85"><td class="mdescLeft"> </td><td class="mdescRight">Set number of significant digits in a floating-point value. <a href="#a717b79e8bf4bbd4048bf86996dd7cb85">More...</a><br /></td></tr>
<tr class="separator:a717b79e8bf4bbd4048bf86996dd7cb85"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a683332a0c88ab75687f8c335d15fd08c"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a683332a0c88ab75687f8c335d15fd08c">brahe_lcm</a> (const uint64_t x, const uint64_t y)</td></tr>
<tr class="memdesc:a683332a0c88ab75687f8c335d15fd08c"><td class="mdescLeft"> </td><td class="mdescRight">Lowest common multiple. <a href="#a683332a0c88ab75687f8c335d15fd08c">More...</a><br /></td></tr>
<tr class="separator:a683332a0c88ab75687f8c335d15fd08c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add171e9317dd7e7f44d16d864f0c457c"><td class="memItemLeft" align="right" valign="top">uint64_t </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#add171e9317dd7e7f44d16d864f0c457c">brahe_gcf</a> (uint64_t x, uint64_t y)</td></tr>
<tr class="memdesc:add171e9317dd7e7f44d16d864f0c457c"><td class="mdescLeft"> </td><td class="mdescRight">Greatest common factor (denominator) <a href="#add171e9317dd7e7f44d16d864f0c457c">More...</a><br /></td></tr>
<tr class="separator:add171e9317dd7e7f44d16d864f0c457c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0dcca39378c18fd880f2a4a1c6498b7e"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a0dcca39378c18fd880f2a4a1c6498b7e">brahe_log2base</a> (const double x, const double base)</td></tr>
<tr class="memdesc:a0dcca39378c18fd880f2a4a1c6498b7e"><td class="mdescLeft"> </td><td class="mdescRight">Logarithm to a specified base. <a href="#a0dcca39378c18fd880f2a4a1c6498b7e">More...</a><br /></td></tr>
<tr class="separator:a0dcca39378c18fd880f2a4a1c6498b7e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a577f1d6fd8dbe5d38a240d0eb3e405f7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a577f1d6fd8dbe5d38a240d0eb3e405f7">brahe_sizepow2</a> (const int n)</td></tr>
<tr class="memdesc:a577f1d6fd8dbe5d38a240d0eb3e405f7"><td class="mdescLeft"> </td><td class="mdescRight">Smallest power of 2 that includes a given value. <a href="#a577f1d6fd8dbe5d38a240d0eb3e405f7">More...</a><br /></td></tr>
<tr class="separator:a577f1d6fd8dbe5d38a240d0eb3e405f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9722d89941373f78b341bf790389e484"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a9722d89941373f78b341bf790389e484">brahe_pretty_int</a> (int64_t n, <a class="el" href="a00004.html#af6d1e561bc299e87adcde2b8075437d9">brahe_pretty_format</a> fmt)</td></tr>
<tr class="memdesc:a9722d89941373f78b341bf790389e484"><td class="mdescLeft"> </td><td class="mdescRight">Turn a 64-bit integer into a pretty string. <a href="#a9722d89941373f78b341bf790389e484">More...</a><br /></td></tr>
<tr class="separator:a9722d89941373f78b341bf790389e484"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab437fe8f26af4492c284b429d367463f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00004.html#a87c74ee44dc77bf6d299940f41c45c2a">brahe_statistics</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ab437fe8f26af4492c284b429d367463f">brahe_get_statistics</a> (double *data, size_t n)</td></tr>
<tr class="memdesc:ab437fe8f26af4492c284b429d367463f"><td class="mdescLeft"> </td><td class="mdescRight">statistics for array of double <a href="#ab437fe8f26af4492c284b429d367463f">More...</a><br /></td></tr>
<tr class="separator:ab437fe8f26af4492c284b429d367463f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a23774ccdc585f8dcaba5ba9b7db0d5e5"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a23774ccdc585f8dcaba5ba9b7db0d5e5">brahe_moving_average</a> (const double *data, const int n, const int distance)</td></tr>
<tr class="memdesc:a23774ccdc585f8dcaba5ba9b7db0d5e5"><td class="mdescLeft"> </td><td class="mdescRight">Moving average. <a href="#a23774ccdc585f8dcaba5ba9b7db0d5e5">More...</a><br /></td></tr>
<tr class="separator:a23774ccdc585f8dcaba5ba9b7db0d5e5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1ef0e264042a814efd401548e8e05f6e"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a1ef0e264042a814efd401548e8e05f6e">brahe_simple_fft</a> (const double *data, const int n)</td></tr>
<tr class="memdesc:a1ef0e264042a814efd401548e8e05f6e"><td class="mdescLeft"> </td><td class="mdescRight">Simple real-to-real fft (arbitrary length) <a href="#a1ef0e264042a814efd401548e8e05f6e">More...</a><br /></td></tr>
<tr class="separator:a1ef0e264042a814efd401548e8e05f6e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1df036f97d3f4ff0525985dc1f36b053"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a1df036f97d3f4ff0525985dc1f36b053">brahe_simple_fft2</a> (const double *data, const int n)</td></tr>
<tr class="memdesc:a1df036f97d3f4ff0525985dc1f36b053"><td class="mdescLeft"> </td><td class="mdescRight">Simple real-to-real fft (power of 2 length) <a href="#a1df036f97d3f4ff0525985dc1f36b053">More...</a><br /></td></tr>
<tr class="separator:a1df036f97d3f4ff0525985dc1f36b053"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab423ed3940f8c34b508bbf5cc3017567"><td class="memItemLeft" align="right" valign="top">double * </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#ab423ed3940f8c34b508bbf5cc3017567">brahe_make_sinusoid</a> (const <a class="el" href="a00003.html">brahe_wave_factor_t</a> *factors, const size_t factor_n, const size_t array_n)</td></tr>
<tr class="memdesc:ab423ed3940f8c34b508bbf5cc3017567"><td class="mdescLeft"> </td><td class="mdescRight">Sine wave based artificial signal generator. <a href="#ab423ed3940f8c34b508bbf5cc3017567">More...</a><br /></td></tr>
<tr class="separator:ab423ed3940f8c34b508bbf5cc3017567"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adf8459d717c455033024242bda7e2af1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#adf8459d717c455033024242bda7e2af1">brahe_add_noise</a> (double *a, const size_t n, double noise)</td></tr>
<tr class="memdesc:adf8459d717c455033024242bda7e2af1"><td class="mdescLeft"> </td><td class="mdescRight">Apply noise to a signal. <a href="#adf8459d717c455033024242bda7e2af1">More...</a><br /></td></tr>
<tr class="separator:adf8459d717c455033024242bda7e2af1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7756d25dc923d606c9d8df710e1b82d8"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a7756d25dc923d606c9d8df710e1b82d8">brahe_asinh</a> (const double x)</td></tr>
<tr class="memdesc:a7756d25dc923d606c9d8df710e1b82d8"><td class="mdescLeft"> </td><td class="mdescRight">Hyperbolic arcsine. <a href="#a7756d25dc923d606c9d8df710e1b82d8">More...</a><br /></td></tr>
<tr class="separator:a7756d25dc923d606c9d8df710e1b82d8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7e2135361eaa2292a33f9757caf2cb3c"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a7e2135361eaa2292a33f9757caf2cb3c">brahe_acosh</a> (const double x)</td></tr>
<tr class="memdesc:a7e2135361eaa2292a33f9757caf2cb3c"><td class="mdescLeft"> </td><td class="mdescRight">Hyperbolic arccosine. <a href="#a7e2135361eaa2292a33f9757caf2cb3c">More...</a><br /></td></tr>
<tr class="separator:a7e2135361eaa2292a33f9757caf2cb3c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a922abe5c1585c4ddefc8052058e87621"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a00004.html#a922abe5c1585c4ddefc8052058e87621">brahe_atanh</a> (const double x)</td></tr>
<tr class="memdesc:a922abe5c1585c4ddefc8052058e87621"><td class="mdescLeft"> </td><td class="mdescRight">Hyperbolic arctangent. <a href="#a922abe5c1585c4ddefc8052058e87621">More...</a><br /></td></tr>
<tr class="separator:a922abe5c1585c4ddefc8052058e87621"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="aac172b8f64859f9bf54464a3a6bc3d7c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_DEG_PER_RAD   57.2957795130823208767981548141</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a560947c90102e2d8c8bddfcdc8d9aebf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_E   2.71828182845904523536028747135</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a71b1569ecfc42e0895108e4f506813c4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_EULER   0.57721566490153286060651209008</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab80971083813a13b7f886efb0016f27a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LN_10   2.30258509299404568401799145468</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a16ad8b699fa21a939786c8c512cff228"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LN_2   0.69314718055994530941723212146</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab9b68fff5200827cfc970b9e0f7c941a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LN_PI   1.14472988584940017414342735135</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="af8a4b9878f8d4190d85a47fed511d1ae"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LOG10_E   0.43429448190325182765112891892</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a2acb48c25034f68df587e0f0aa629b8c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LOG2_E   1.44269504088896340735992468100</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4a13004f988698d0e3edde4c35faa2ef"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_LOG_2   0.30102999566398119521373889472</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abf7d7206f6f89332832ea82f3955e1c9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_ONE_DIV_PI   0.31830988618379067153776752675</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4e1fedcefdcf7671b203721214900b78"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI   3.14159265358979323846264338328</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a54177483776db52a388c3e652a8b5982"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_12   0.26179938779914943653855361527</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a6bc29aa9fac151ab7971cd15a638b67f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_18   0.17453292519943295769236907685</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ae07b001cefb9e3a6cf8bf371c56119c4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_2   1.57079632679489661923132169164</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a8ad477fec1152a9e44d95dbae4c558cb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_3   1.04719755119659774615421446109</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4535b7b7be92cbad9d6425693c11643e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_36   0.08726646259971647884618453842</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4b1d771c20ae91ca703f563ff615d6d3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_4   0.78539816339744830961566084582</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a996f916dc16cf561c6f8a444829b8de4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_6   0.52359877559829887307710723055</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1723fc41b28843e6d1aa15028c16a211"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_PI_DIV_9   0.34906585039886591538473815370</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a81b271b7f56a5ddd3b9fe307778d0821"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_RAD_PER_DEG   0.01745329251994329576923690768</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a0f30c1a745dc06e0b8c3611c03b7d4e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_SQRT_2   1.41421356237309504880168872421</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ad4551041fd2bbaa15958e2c48507ef3e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_SQRT_3   1.73205080756887729352744634151</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a0ab8e9aa2a0e7f80b40b8b6bd9b79659"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_SQRT_HALF   0.70710678118654752440084436210</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a83b4f9fccb40a1f78bb88aacc8e84cab"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_SQRT_PI   1.77245385090551602729816748334</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a4fff0d018f3605f8d29a817c49c98482"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_TAU   6.28318530717958647692528676656</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ab6f9592c1e49a672372f56cdd1a617d5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_TWO_DIV_PI   0.63661977236758134307553505349</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="abed5bd6cb3ba2a4b0f1e99ebd7ea2fcc"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BRAHE_TWO_DIV_SQRT_PI   1.12837916709551257389615890312</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="af6d1e561bc299e87adcde2b8075437d9"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef enum <a class="el" href="a00004.html#a27c66fb5daf87a5e45d8e80c15683e32">brahe_pretty_format_t</a>
<a class="el" href="a00004.html#af6d1e561bc299e87adcde2b8075437d9">brahe_pretty_format</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a87c74ee44dc77bf6d299940f41c45c2a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="a00002.html">brahe_statistics_t</a>
<a class="el" href="a00004.html#a87c74ee44dc77bf6d299940f41c45c2a">brahe_statistics</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a27c66fb5daf87a5e45d8e80c15683e32"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="a00004.html#a27c66fb5daf87a5e45d8e80c15683e32">brahe_pretty_format_t</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a27c66fb5daf87a5e45d8e80c15683e32a7cf956fda0334adb6a2cab5867471131"></a>BRAHE_PRETTY_TEXT </td><td class="fielddoc">
<p>english text (nine thousand, two hundred eleven) </p>
</td></tr>
<tr><td class="fieldname"><a class="anchor" id="a27c66fb5daf87a5e45d8e80c15683e32a0a91a8358d264801da6b2fbc3b923a9b"></a>BRAHE_PRETTY_COMMA </td><td class="fielddoc">
<p>comma delimited, (1,234,567,890) </p>
</td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a7e2135361eaa2292a33f9757caf2cb3c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_acosh </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates cosh<sup>-1</sup>. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>a value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>inverse hyperbolic cosine of <em>x</em> </dd></dl>
</div>
</div>
<a class="anchor" id="adf8459d717c455033024242bda7e2af1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void brahe_add_noise </td>
<td>(</td>
<td class="paramtype">double * </td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>noise</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Adds a percentage of noise to a signal. If "noise" is set to 0.1 (for example) each value will be adjust to between 90% and 110% of its original value. This function changes the existing values in the array. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>array containing signal data </td></tr>
<tr><td class="paramname">n</td><td>number of samples in signal </td></tr>
<tr><td class="paramname">noise</td><td>percentage of noise </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a7756d25dc923d606c9d8df710e1b82d8"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_asinh </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates sinh<sup>-1</sup>. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>a value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>inverse hyperbolic sine of <em>x</em> </dd></dl>
</div>
</div>
<a class="anchor" id="a922abe5c1585c4ddefc8052058e87621"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_atanh </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates tanh<sup>-1</sup>. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>a value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>inverse hyperbolic tangent of <em>x</em> </dd></dl>
</div>
</div>
<a class="anchor" id="add171e9317dd7e7f44d16d864f0c457c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t brahe_gcf </td>
<td>(</td>
<td class="paramtype">uint64_t </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint64_t </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates the greatest common factor for two values. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>first value </td></tr>
<tr><td class="paramname">y</td><td>second value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The greatest common factor for <em>x</em> and <em>y</em> </dd></dl>
</div>
</div>
<a class="anchor" id="ab437fe8f26af4492c284b429d367463f"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="a00004.html#a87c74ee44dc77bf6d299940f41c45c2a">brahe_statistics</a> brahe_get_statistics </td>
<td>(</td>
<td class="paramtype">double * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculate several common statistics for an array of doubles. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>array of double values </td></tr>
<tr><td class="paramname">n</td><td>number of elements in data </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>statistics for data </dd></dl>
</div>
</div>
<a class="anchor" id="a683332a0c88ab75687f8c335d15fd08c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint64_t brahe_lcm </td>
<td>(</td>
<td class="paramtype">const uint64_t </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint64_t </td>
<td class="paramname"><em>y</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates the lowest common multiple for two values. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>first value </td></tr>
<tr><td class="paramname">y</td><td>second value </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The lowest common multiple for <em>x</em> and <em>y</em> </dd></dl>
</div>
</div>
<a class="anchor" id="a0dcca39378c18fd880f2a4a1c6498b7e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_log2base </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const double </td>
<td class="paramname"><em>base</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates the base-n logarithm for a given value. If a range error occurs, the return value equals NaN. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>value for which logarithm is required </td></tr>
<tr><td class="paramname">base</td><td>lagarithm base </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>logarithm of <em>x</em> to base <em>base</em>; NAN on range error </dd></dl>
</div>
</div>
<a class="anchor" id="ab423ed3940f8c34b508bbf5cc3017567"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double* brahe_make_sinusoid </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="a00003.html">brahe_wave_factor_t</a> * </td>
<td class="paramname"><em>factors</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t </td>
<td class="paramname"><em>factor_n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const size_t </td>
<td class="paramname"><em>array_n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Generates an array of doubles by combining sine waves. The primary purpose is to produce an artificial signal with known properties, for testing signal analysis applications. The caller is responsible for freeing the memory used by the array returned by this function. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">factors</td><td>defines properties of the sine waves to be combined </td></tr>
<tr><td class="paramname">factor_n</td><td>number of elements in factors </td></tr>
<tr><td class="paramname">array_n</td><td>number of elements in the output array </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an allocated array containg values generated from the given factors </dd></dl>
</div>
</div>
<a class="anchor" id="a23774ccdc585f8dcaba5ba9b7db0d5e5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double* brahe_moving_average </td>
<td>(</td>
<td class="paramtype">const double * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"><em>distance</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Computes the moving average for an array. The returned buffer must be freed by the calling code. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>array of double values to be averaged </td></tr>
<tr><td class="paramname">n</td><td>number of elements in data </td></tr>
<tr><td class="paramname">distance</td><td>number elements to average before and after an element in <em>data</em> </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an allocated <em>n</em>-length array containing the moving average of corresponding elements in <em>data</em> </dd></dl>
</div>
</div>
<a class="anchor" id="a9722d89941373f78b341bf790389e484"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* brahe_pretty_int </td>
<td>(</td>
<td class="paramtype">int64_t </td>
<td class="paramname"><em>n</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="a00004.html#af6d1e561bc299e87adcde2b8075437d9">brahe_pretty_format</a> </td>
<td class="paramname"><em>fmt</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a nicely formatted strong for a given 64-bit integer. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">n</td><td>number to be formatted </td></tr>
<tr><td class="paramname">fmt</td><td>specifies format, as text or comma-delimited </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>an allocated string containing the generated text </dd></dl>
</div>
</div>
<a class="anchor" id="a12a41b5db8722b0e2b834839d5ccdccb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_round_nearest </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Rounds a value to nearest integer, rounding to even for exact fractions of 0.5. </p>
</div>
</div>
<a class="anchor" id="a717b79e8bf4bbd4048bf86996dd7cb85"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double brahe_sigdig </td>
<td>(</td>
<td class="paramtype">const double </td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const uint16_t </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the given value rounded for the number of specified decimal digits of precision. </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">x</td><td>- Original value to be rounded </td></tr>
<tr><td class="paramname">n</td><td>- Number of significant digits </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value <em>x</em> rounded to <em>n</em> digits of precision </dd></dl>
</div>
</div>
<a class="anchor" id="a1ef0e264042a814efd401548e8e05f6e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double* brahe_simple_fft </td>
<td>(</td>
<td class="paramtype">const double * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A simple real-to-real FFT for arbitrary-length data. This is not intended to replace dedicated libraries such as FFTW. The caller is responsible for freeing the memory used by the array returned by this function. /param data input array /param n length of data /return an allocated array containing the real FFT of data </p>
</div>
</div>
<a class="anchor" id="a1df036f97d3f4ff0525985dc1f36b053"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double* brahe_simple_fft2 </td>
<td>(</td>
<td class="paramtype">const double * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const int </td>
<td class="paramname"><em>n</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>A simple real-to-real FFT for power of 2-length data. This is not intended to replace dedicated libraries such as FFTW. The caller is responsible for freeing the memory used by the array returned by this function. /param data input array /param n length of data /return an allocated array containing the real FFT of data </p>
</div>
</div>
<a class="anchor" id="a577f1d6fd8dbe5d38a240d0eb3e405f7"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int brahe_sizepow2 </td>
<td>(</td>
<td class="paramtype">const int </td>
<td class="paramname"><em>n</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the smallest power of 2 that includes n in its range </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">n</td><td>number that must be less than the result </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the lowest power of 2 that is greater than <em>n</em>, or </dd></dl>
</div>
</div>
</div><!-- contents -->
<hr>
<p align="center"><small>
© 2011 Scott Robert Ladd. All rights reserved.<br>
HTML documentation generated by Dimitri van Heesch's excellent <a href="http://www.doxygen.org">Doxygen</a> tool.
</small>
</p>
</body>
</html>
|