daru_lite 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +30 -0
  3. data/README.md +1 -1
  4. data/lib/daru_lite/data_frame/convertible.rb +0 -33
  5. data/lib/daru_lite/data_frame/fetchable.rb +1 -1
  6. data/lib/daru_lite/data_frame/i_o_able.rb +0 -102
  7. data/lib/daru_lite/data_frame/indexable.rb +24 -0
  8. data/lib/daru_lite/data_frame/relabelable.rb +125 -0
  9. data/lib/daru_lite/data_frame/sortable.rb +27 -1
  10. data/lib/daru_lite/dataframe.rb +3 -4
  11. data/lib/daru_lite/index/categorical_index.rb +8 -0
  12. data/lib/daru_lite/index/index.rb +0 -1
  13. data/lib/daru_lite/index/multi_index.rb +8 -5
  14. data/lib/daru_lite/io/io.rb +0 -195
  15. data/lib/daru_lite/maths/arithmetic/vector.rb +31 -0
  16. data/lib/daru_lite/maths/statistics/vector/descriptive.rb +134 -0
  17. data/lib/daru_lite/maths/statistics/vector/dispersion.rb +120 -0
  18. data/lib/daru_lite/maths/statistics/vector/extrema.rb +217 -0
  19. data/lib/daru_lite/maths/statistics/vector/normalization.rb +86 -0
  20. data/lib/daru_lite/maths/statistics/vector/percentile.rb +64 -0
  21. data/lib/daru_lite/maths/statistics/vector/sampling.rb +56 -0
  22. data/lib/daru_lite/maths/statistics/vector/time_series.rb +350 -0
  23. data/lib/daru_lite/maths/statistics/vector.rb +16 -994
  24. data/lib/daru_lite/vector/convertible.rb +0 -32
  25. data/lib/daru_lite/vector.rb +0 -9
  26. data/lib/daru_lite/version.rb +1 -1
  27. data/lib/daru_lite.rb +0 -30
  28. metadata +9 -75
  29. data/lib/daru_lite/date_time/index.rb +0 -570
  30. data/lib/daru_lite/date_time/offsets.rb +0 -397
  31. data/lib/daru_lite/extensions/which_dsl.rb +0 -53
  32. data/lib/daru_lite/io/sql_data_source.rb +0 -80
  33. data/lib/daru_lite/iruby/helpers.rb +0 -38
  34. data/lib/daru_lite/iruby/templates/dataframe.html.erb +0 -5
  35. data/lib/daru_lite/iruby/templates/dataframe_mi.html.erb +0 -5
  36. data/lib/daru_lite/iruby/templates/dataframe_mi_tbody.html.erb +0 -35
  37. data/lib/daru_lite/iruby/templates/dataframe_mi_thead.html.erb +0 -21
  38. data/lib/daru_lite/iruby/templates/dataframe_tbody.html.erb +0 -28
  39. data/lib/daru_lite/iruby/templates/dataframe_thead.html.erb +0 -21
  40. data/lib/daru_lite/iruby/templates/multi_index.html.erb +0 -12
  41. data/lib/daru_lite/iruby/templates/vector.html.erb +0 -5
  42. data/lib/daru_lite/iruby/templates/vector_mi.html.erb +0 -5
  43. data/lib/daru_lite/iruby/templates/vector_mi_tbody.html.erb +0 -26
  44. data/lib/daru_lite/iruby/templates/vector_mi_thead.html.erb +0 -8
  45. data/lib/daru_lite/iruby/templates/vector_tbody.html.erb +0 -17
  46. data/lib/daru_lite/iruby/templates/vector_thead.html.erb +0 -8
@@ -1,5 +0,0 @@
1
- <b> DaruLite::Vector(<%= size %>)<%= ':category' if category? %> </b>
2
- <table>
3
- <%= table_thead %>
4
- <%= table_tbody %>
5
- </table>
@@ -1,5 +0,0 @@
1
- <b> DaruLite::Vector(<%= size %>)<%= ':category' if category? %> </b>
2
- <table>
3
- <%= table_thead %>
4
- <%= table_tbody %>
5
- </table>
@@ -1,26 +0,0 @@
1
- <tbody>
2
- <% DaruLite::IRuby::Helpers.tuples_with_rowspans(@index).first(threshold).zip(to_a).each do |tuple, value| %>
3
- <tr>
4
- <% tuple.each do |idx, span| %>
5
- <th rowspan="<%= span %>"><%= idx %></th>
6
- <% end %>
7
- <td><%= value %></td>
8
- </tr>
9
- <% end %>
10
-
11
- <% if size > threshold %>
12
- <% last_index = @index.to_a.last %>
13
- <tr>
14
- <% last_index.size.times do %>
15
- <th>...</th>
16
- <% end %>
17
- <td>...</td>
18
- </tr>
19
- <tr>
20
- <% last_index.each do |idx| %>
21
- <th><%= idx %></td>
22
- <% end %>
23
- <td><%= self[last_index] %></td>
24
- </tr>
25
- <% end %>
26
- </tbody>
@@ -1,8 +0,0 @@
1
- <thead>
2
- <% if name %>
3
- <tr>
4
- <th colspan="<%= index.width %>"> </th>
5
- <th><%= name %></th>
6
- </tr>
7
- <% end %>
8
- </thead>
@@ -1,17 +0,0 @@
1
- <tbody>
2
- <% @index.each_with_index.first(threshold).each do |index, pos| %>
3
- <tr>
4
- <td><%= index %></td>
5
- <td><%= self.at(pos) %></td>
6
- </tr>
7
- <% end %>
8
-
9
- <% if size > threshold %>
10
- <% last_index = @index.size-1 %>
11
- <tr><td>...</td><td>...</td></tr>
12
- <tr>
13
- <td><%= last_index %></td>
14
- <td><%= self.at last_index %></td>
15
- </tr>
16
- <% end %>
17
- </tbody>
@@ -1,8 +0,0 @@
1
- <thead>
2
- <% if name %>
3
- <tr>
4
- <th> </th>
5
- <th><%= name %></th>
6
- </tr>
7
- <% end %>
8
- </thead>