| 676 | return result; |
| 677 | } |
| 678 | std::vector<std::vector<double>> jet(size_t n) { |
| 679 | static std::vector<std::vector<double>> map = { |
| 680 | {0, 0, 0.5625}, {0, 0, 0.625}, {0, 0, 0.6875}, |
| 681 | {0, 0, 0.75}, {0, 0, 0.8125}, {0, 0, 0.875}, |
| 682 | {0, 0, 0.9375}, {0, 0, 1}, {0, 0.0625, 1}, |
| 683 | {0, 0.125, 1}, {0, 0.1875, 1}, {0, 0.25, 1}, |
| 684 | {0, 0.3125, 1}, {0, 0.375, 1}, {0, 0.4375, 1}, |
| 685 | {0, 0.5, 1}, {0, 0.5625, 1}, {0, 0.625, 1}, |
| 686 | {0, 0.6875, 1}, {0, 0.75, 1}, {0, 0.8125, 1}, |
| 687 | {0, 0.875, 1}, {0, 0.9375, 1}, {0, 1, 1}, |
| 688 | {0.0625, 1, 0.9375}, {0.125, 1, 0.875}, {0.1875, 1, 0.8125}, |
| 689 | {0.25, 1, 0.75}, {0.3125, 1, 0.6875}, {0.375, 1, 0.625}, |
| 690 | {0.4375, 1, 0.5625}, {0.5, 1, 0.5}, {0.5625, 1, 0.4375}, |
| 691 | {0.625, 1, 0.375}, {0.6875, 1, 0.3125}, {0.75, 1, 0.25}, |
| 692 | {0.8125, 1, 0.1875}, {0.875, 1, 0.125}, {0.9375, 1, 0.0625}, |
| 693 | {1, 1, 0}, {1, 0.9375, 0}, {1, 0.875, 0}, |
| 694 | {1, 0.8125, 0}, {1, 0.75, 0}, {1, 0.6875, 0}, |
| 695 | {1, 0.625, 0}, {1, 0.5625, 0}, {1, 0.5, 0}, |
| 696 | {1, 0.4375, 0}, {1, 0.375, 0}, {1, 0.3125, 0}, |
| 697 | {1, 0.25, 0}, {1, 0.1875, 0}, {1, 0.125, 0}, |
| 698 | {1, 0.0625, 0}, {1, 0, 0}, {0.9375, 0, 0}, |
| 699 | {0.875, 0, 0}, {0.8125, 0, 0}, {0.75, 0, 0}, |
| 700 | {0.6875, 0, 0}, {0.625, 0, 0}, {0.5625, 0, 0}, |
| 701 | {0.5, 0, 0}}; |
| 702 | if (n == 64) { |
| 703 | return map; |
| 704 | } |
| 705 | std::vector<std::vector<double>> result; |
| 706 | for (size_t i = 0; i < n; ++i) { |
| 707 | std::array<float, 4> ac = |
| 708 | colormap_interpolation(static_cast<double>(i), 0., |
| 709 | static_cast<double>(n - 1), map); |
| 710 | std::vector<double> vc = {ac[1], ac[2], ac[3]}; |
| 711 | result.emplace_back(vc); |
| 712 | } |
| 713 | return result; |
| 714 | } |
| 715 | std::vector<std::vector<double>> turbo(size_t n) { |
| 716 | static std::vector<std::vector<double>> map = { |
| 717 | {0.189950, 0.071760, 0.232170}, {0.194830, 0.083390, 0.261490}, |
no test coverage detected