| 627 | template class OrderedSparseBin<uint32_t>; |
| 628 | |
| 629 | Bin* Bin::CreateBin(data_size_t num_data, int num_bin, double sparse_rate, |
| 630 | bool is_enable_sparse, double sparse_threshold, bool* is_sparse) { |
| 631 | // sparse threshold |
| 632 | if (sparse_rate >= sparse_threshold && is_enable_sparse) { |
| 633 | *is_sparse = true; |
| 634 | return CreateSparseBin(num_data, num_bin); |
| 635 | } else { |
| 636 | *is_sparse = false; |
| 637 | return CreateDenseBin(num_data, num_bin); |
| 638 | } |
| 639 | } |
| 640 | |
| 641 | Bin* Bin::CreateDenseBin(data_size_t num_data, int num_bin) { |
| 642 | if (num_bin <= 16) { |
nothing calls this directly
no outgoing calls
no test coverage detected