silicium 0.0.15 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +4 -0
- data/.gitignore +3 -1
- data/.travis.yml +12 -1
- data/Gemfile +4 -0
- data/Makefile +269 -0
- data/README.md +2 -0
- data/Rakefile +7 -0
- data/docs/Object.html +117 -0
- data/docs/README_md.html +142 -0
- data/docs/Silicium.html +101 -0
- data/docs/Silicium/Combinatorics.html +270 -0
- data/docs/Silicium/Dice.html +99 -0
- data/docs/Silicium/Dice/Polyhedron.html +315 -0
- data/docs/Silicium/Dice/PolyhedronSet.html +321 -0
- data/docs/Silicium/Error.html +106 -0
- data/docs/Silicium/Geometry.html +940 -0
- data/docs/Silicium/Geometry/Line2dCanon.html +243 -0
- data/docs/Silicium/Geometry/VariablesOrderException.html +106 -0
- data/docs/Silicium/Graphs.html +164 -0
- data/docs/Silicium/Graphs/GraphError.html +106 -0
- data/docs/Silicium/Graphs/OrientedGraph.html +775 -0
- data/docs/Silicium/Graphs/UnorientedGraph.html +284 -0
- data/docs/Silicium/IntegralDoesntExistError.html +106 -0
- data/docs/Silicium/NumericalIntegration.html +521 -0
- data/docs/Silicium/Optimization.html +639 -0
- data/docs/Silicium/Plotter.html +186 -0
- data/docs/Silicium/Plotter/Image.html +297 -0
- data/docs/created.rid +9 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +619 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +132 -0
- data/docs/js/darkfish.js +84 -0
- data/docs/js/navigation.js +105 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +110 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +608 -0
- data/lib/geometry.rb +236 -0
- data/lib/graph.rb +164 -0
- data/lib/numerical_integration.rb +147 -0
- data/lib/optimization.rb +144 -0
- data/lib/plotter.rb +96 -0
- data/lib/silicium.rb +0 -1
- data/lib/silicium/version.rb +1 -1
- data/lib/theory_of_probability.rb +227 -0
- data/silicium.gemspec +4 -2
- metadata +90 -3
@@ -0,0 +1 @@
|
|
1
|
+
var search_data = {"index":{"searchIndex":["object","silicium","combinatorics","dice","polyhedron","polyhedronset","error","geometry","line2dcanon","variablesorderexception","graphs","grapherror","orientedgraph","unorientedgraph","integraldoesntexisterror","numericalintegration","optimization","plotter","image","accuracy()","add_edge!()","add_edge!()","add_edge_force!()","add_vertex!()","adjacted_with()","arrangement()","bar_chart()","bogosort()","bogosort!()","clockwise()","color()","combination()","counter_clockwise()","csides()","cut_by_eq()","delete_edge!()","delete_edge!()","delete_vertex!()","dijkstra_algorythm()","directing_vector3d()","distance_point_line2d()","distance_point_line_equation2d()","distance_point_to_point2d()","distance_point_to_point3d()","edge_label_number()","edge_number()","edge_number()","export()","fact()","factorial()","get_edge_label()","get_vertex_label()","half_division()","half_division_step()","has_edge?()","has_vertex?()","height_point_3d()","hook_jeeves()","hook_jeeves_step()","insert_eq()","integrating_monte_carlo_base()","label_edge!()","label_edge!()","label_vertex!()","left_rect_integration()","left_rect_integration_n()","make_graph_by_plotter()","middle()","middle_rectangles()","middle_rectangles_with_a_segment()","minimal_convex_hull_2d()","needed_variables_order?()","new()","new()","new()","new()","new()","not_polygon?()","oriented_area()","percentage()","point_is_on_line?()","point_to_line_distance_3d()","process_cf()","process_free_member()","process_line_by_coordinates()","put_point_in_part()","re_lu()","rectangle()","sides()","sigmoid()","simpson_integration()","simpson_integration_with_a_segment()","sorted?()","switch_step()","three_eights_integration()","three_eights_integration_n()","throw()","throw()","to_s()","to_s()","trapezoid()","trapezoid_with_a_segment()","vector_length()","vectors_product()","vertex_label_number()","vertex_number()","readme"],"longSearchIndex":["object","silicium","silicium::combinatorics","silicium::dice","silicium::dice::polyhedron","silicium::dice::polyhedronset","silicium::error","silicium::geometry","silicium::geometry::line2dcanon","silicium::geometry::variablesorderexception","silicium::graphs","silicium::graphs::grapherror","silicium::graphs::orientedgraph","silicium::graphs::unorientedgraph","silicium::integraldoesntexisterror","silicium::numericalintegration","silicium::optimization","silicium::plotter","silicium::plotter::image","silicium::optimization#accuracy()","silicium::graphs::orientedgraph#add_edge!()","silicium::graphs::unorientedgraph#add_edge!()","silicium::graphs::orientedgraph#add_edge_force!()","silicium::graphs::orientedgraph#add_vertex!()","silicium::graphs::orientedgraph#adjacted_with()","silicium::combinatorics#arrangement()","silicium::plotter::image#bar_chart()","silicium::optimization#bogosort()","silicium::optimization#bogosort!()","silicium::geometry#clockwise()","silicium::plotter#color()","silicium::combinatorics#combination()","silicium::geometry#counter_clockwise()","silicium::dice::polyhedron#csides()","silicium::geometry#cut_by_eq()","silicium::graphs::orientedgraph#delete_edge!()","silicium::graphs::unorientedgraph#delete_edge!()","silicium::graphs::orientedgraph#delete_vertex!()","silicium::graphs#dijkstra_algorythm()","silicium::geometry#directing_vector3d()","silicium::geometry#distance_point_line2d()","silicium::geometry#distance_point_line_equation2d()","silicium::geometry#distance_point_to_point2d()","silicium::geometry#distance_point_to_point3d()","silicium::graphs::orientedgraph#edge_label_number()","silicium::graphs::orientedgraph#edge_number()","silicium::graphs::unorientedgraph#edge_number()","silicium::plotter::image#export()","silicium::combinatorics#fact()","silicium::combinatorics#factorial()","silicium::graphs::orientedgraph#get_edge_label()","silicium::graphs::orientedgraph#get_vertex_label()","silicium::optimization#half_division()","silicium::optimization#half_division_step()","silicium::graphs::orientedgraph#has_edge?()","silicium::graphs::orientedgraph#has_vertex?()","silicium::geometry#height_point_3d()","silicium::optimization#hook_jeeves()","silicium::optimization#hook_jeeves_step()","silicium::geometry#insert_eq()","silicium::optimization#integrating_monte_carlo_base()","silicium::graphs::orientedgraph#label_edge!()","silicium::graphs::unorientedgraph#label_edge!()","silicium::graphs::orientedgraph#label_vertex!()","silicium::numericalintegration::left_rect_integration()","silicium::numericalintegration::left_rect_integration_n()","silicium::dice::polyhedronset#make_graph_by_plotter()","silicium::optimization#middle()","silicium::numericalintegration::middle_rectangles()","silicium::numericalintegration::middle_rectangles_with_a_segment()","silicium::geometry#minimal_convex_hull_2d()","silicium::geometry#needed_variables_order?()","silicium::dice::polyhedron::new()","silicium::dice::polyhedronset::new()","silicium::geometry::line2dcanon::new()","silicium::graphs::orientedgraph::new()","silicium::plotter::image::new()","silicium::geometry#not_polygon?()","silicium::geometry#oriented_area()","silicium::dice::polyhedronset#percentage()","silicium::geometry::line2dcanon#point_is_on_line?()","silicium::geometry#point_to_line_distance_3d()","silicium::geometry#process_cf()","silicium::geometry#process_free_member()","silicium::geometry#process_line_by_coordinates()","silicium::geometry#put_point_in_part()","silicium::optimization#re_lu()","silicium::plotter::image#rectangle()","silicium::dice::polyhedron#sides()","silicium::optimization#sigmoid()","silicium::numericalintegration::simpson_integration()","silicium::numericalintegration::simpson_integration_with_a_segment()","silicium::optimization#sorted?()","silicium::optimization#switch_step()","silicium::numericalintegration::three_eights_integration()","silicium::numericalintegration::three_eights_integration_n()","silicium::dice::polyhedron#throw()","silicium::dice::polyhedronset#throw()","silicium::dice::polyhedron#to_s()","silicium::dice::polyhedronset#to_s()","silicium::numericalintegration::trapezoid()","silicium::numericalintegration::trapezoid_with_a_segment()","silicium::geometry#vector_length()","silicium::geometry#vectors_product()","silicium::graphs::orientedgraph#vertex_label_number()","silicium::graphs::orientedgraph#vertex_number()",""],"info":[["Object","","Object.html","",""],["Silicium","","Silicium.html","","<p>require 'set' require 'silicium'\n"],["Silicium::Combinatorics","","Silicium/Combinatorics.html","",""],["Silicium::Dice","","Silicium/Dice.html","",""],["Silicium::Dice::Polyhedron","","Silicium/Dice/Polyhedron.html","","<p>Class represents a polyhedron csides - number or sides sides - array of sides(unusual for custom polyhedrons) …\n"],["Silicium::Dice::PolyhedronSet","","Silicium/Dice/PolyhedronSet.html","","<p>Class represents a PolyhedronsSet percentage - hash with chances of getting definite score\n"],["Silicium::Error","","Silicium/Error.html","",""],["Silicium::Geometry","","Silicium/Geometry.html","",""],["Silicium::Geometry::Line2dCanon","","Silicium/Geometry/Line2dCanon.html","","<p>Class represents a line as equation y = k*x +b k - slope b - free_term in two-dimensional space\n"],["Silicium::Geometry::VariablesOrderException","","Silicium/Geometry/VariablesOrderException.html","",""],["Silicium::Graphs","","Silicium/Graphs.html","",""],["Silicium::Graphs::GraphError","","Silicium/Graphs/GraphError.html","",""],["Silicium::Graphs::OrientedGraph","","Silicium/Graphs/OrientedGraph.html","",""],["Silicium::Graphs::UnorientedGraph","","Silicium/Graphs/UnorientedGraph.html","",""],["Silicium::IntegralDoesntExistError","","Silicium/IntegralDoesntExistError.html","",""],["Silicium::NumericalIntegration","","Silicium/NumericalIntegration.html","","<p>A class providing numerical integration methods\n"],["Silicium::Optimization","","Silicium/Optimization.html","",""],["Silicium::Plotter","","Silicium/Plotter.html","",""],["Silicium::Plotter::Image","","Silicium/Plotter/Image.html","","<p>A class representing canvas for plotting bar charts and function graphs\n"],["accuracy","Silicium::Optimization","Silicium/Optimization.html#method-i-accuracy","(step)","<p>calculate current accuracy in Hook - Jeeves method\n"],["add_edge!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-add_edge-21","(from, to)",""],["add_edge!","Silicium::Graphs::UnorientedGraph","Silicium/Graphs/UnorientedGraph.html#method-i-add_edge-21","(from, to)",""],["add_edge_force!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-add_edge_force-21","(from, to)","<p>should only be used in constructor\n"],["add_vertex!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-add_vertex-21","(vertex_id)",""],["adjacted_with","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-adjacted_with","(vertex)",""],["arrangement","Silicium::Combinatorics","Silicium/Combinatorics.html#method-i-arrangement","(n, k)","<p>Function A(n,k)\n"],["bar_chart","Silicium::Plotter::Image","Silicium/Plotter/Image.html#method-i-bar_chart","(bars, bar_width, bars_color = ChunkyPNG::Color('red @ 1.0'), axis_color = ChunkyPNG::Color::BLACK)","<p>Draws a bar chart in the plot using provided <code>bars</code>, each of them has width of <code>bar_width</code> and colored <code>bars_color</code> …\n"],["bogosort","Silicium::Optimization","Silicium/Optimization.html#method-i-bogosort","(a)","<p>fastest(but it is not exactly) sort\n"],["bogosort!","Silicium::Optimization","Silicium/Optimization.html#method-i-bogosort-21","(a)","<p>fastest(but it is not exactly) sort, modify sequance\n"],["clockwise","Silicium::Geometry","Silicium/Geometry.html#method-i-clockwise","(a, b, c)","<p>Determines if a clockwise crawl is performed for defined order of points\n"],["color","Silicium::Plotter","Silicium/Plotter.html#method-i-color","(*args)","<p>Factory method to return a color value, based on the arguments given.\n<p>@overload Color(r, g, b, a)\n\n<pre class=\"ruby\"><span class=\"ruby-ivar\">@param</span> <span class=\"ruby-operator\">...</span>\n</pre>\n"],["combination","Silicium::Combinatorics","Silicium/Combinatorics.html#method-i-combination","(n, k)","<p>Function C(n,k)\n"],["counter_clockwise","Silicium::Geometry","Silicium/Geometry.html#method-i-counter_clockwise","(a, b, c)","<p>Determines if a counter-clockwise crawl is performed for defined order of points\n"],["csides","Silicium::Dice::Polyhedron","Silicium/Dice/Polyhedron.html#method-i-csides","()",""],["cut_by_eq","Silicium::Geometry","Silicium/Geometry.html#method-i-cut_by_eq","(line_equation)",""],["delete_edge!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-delete_edge-21","(from, to)",""],["delete_edge!","Silicium::Graphs::UnorientedGraph","Silicium/Graphs/UnorientedGraph.html#method-i-delete_edge-21","(from, to)",""],["delete_vertex!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-delete_vertex-21","(vertex)",""],["dijkstra_algorythm","Silicium::Graphs","Silicium/Graphs.html#method-i-dijkstra_algorythm","(graph, starting_vertex)",""],["directing_vector3d","Silicium::Geometry","Silicium/Geometry.html#method-i-directing_vector3d","(line_equation)","<p>Creates an array- directing vector in three-dimensional space . The equation is specified in the canonical …\n"],["distance_point_line2d","Silicium::Geometry","Silicium/Geometry.html#method-i-distance_point_line2d","(p1, p2, a)","<p>The distance from a point to a line on a plane The line is defined by two points en.wikipedia.org/wiki/Distance_from_a_point_to_a_line …\n"],["distance_point_line_equation2d","Silicium::Geometry","Silicium/Geometry.html#method-i-distance_point_line_equation2d","(a, b, c, p)","<p>The distance from a point to a line on a plane Line defined by an equation return 0 if the equation does …\n"],["distance_point_to_point2d","Silicium::Geometry","Silicium/Geometry.html#method-i-distance_point_to_point2d","(a, b)","<p>Calculates the distance from given points in two-dimensional space\n"],["distance_point_to_point3d","Silicium::Geometry","Silicium/Geometry.html#method-i-distance_point_to_point3d","(a, b)","<p>Calculates the distance from given points in three-dimensional space\n"],["edge_label_number","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-edge_label_number","()",""],["edge_number","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-edge_number","()",""],["edge_number","Silicium::Graphs::UnorientedGraph","Silicium/Graphs/UnorientedGraph.html#method-i-edge_number","()",""],["export","Silicium::Plotter::Image","Silicium/Plotter/Image.html#method-i-export","(filename)","<p>Exports plotted image to file <code>filename</code>\n"],["fact","Silicium::Combinatorics","Silicium/Combinatorics.html#method-i-fact","(n, k)","<p>Factorial for counting 3 parameters in one run\n"],["factorial","Silicium::Combinatorics","Silicium/Combinatorics.html#method-i-factorial","(n)",""],["get_edge_label","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-get_edge_label","(from, to)",""],["get_vertex_label","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-get_vertex_label","(vertex)",""],["half_division","Silicium::Optimization","Silicium/Optimization.html#method-i-half_division","(a, b, eps = 0.001, &block)","<p>find root in [a, b], if he exist, if number of iterations > iters -> error\n"],["half_division_step","Silicium::Optimization","Silicium/Optimization.html#method-i-half_division_step","(a, b, c, &block)","<p>do one half division step\n"],["has_edge?","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-has_edge-3F","(from, to)",""],["has_vertex?","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-has_vertex-3F","(vertex)",""],["height_point_3d","Silicium::Geometry","Silicium/Geometry.html#method-i-height_point_3d","(line_equation)","<p>Creates an array of coordinates of the point ([x, y, z] on the line given by the equation in the canonical …\n"],["hook_jeeves","Silicium::Optimization","Silicium/Optimization.html#method-i-hook_jeeves","(x, step, eps = 0.1, &block)","<p>Hook - Jeeves method for find minimum point (x - array of start variables, step - step of one iteration, …\n"],["hook_jeeves_step","Silicium::Optimization","Silicium/Optimization.html#method-i-hook_jeeves_step","(x, i, step, &block)","<p>do one Hook - Jeeves step\n"],["insert_eq","Silicium::Geometry","Silicium/Geometry.html#method-i-insert_eq","(line_equation)",""],["integrating_Monte_Carlo_base","Silicium::Optimization","Silicium/Optimization.html#method-i-integrating_Monte_Carlo_base","(a, b, n = 100000, &block)","<p>integrating using method Monte Carlo (f - function, a, b - integrating limits, n - amount of random numbers) …\n"],["label_edge!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-label_edge-21","(from, to, label)",""],["label_edge!","Silicium::Graphs::UnorientedGraph","Silicium/Graphs/UnorientedGraph.html#method-i-label_edge-21","(from, to, label)",""],["label_vertex!","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-label_vertex-21","(vertex, label)",""],["left_rect_integration","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-left_rect_integration","(left_p, right_p, eps = 0.0001, &block)","<p>Left Rectangle Method and Right Rectangle Method\n"],["left_rect_integration_n","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-left_rect_integration_n","(left_p, right_p, splits, &block)","<p>Left Rectangle Auxiliary Method and Right Rectangle Auxiliary Method\n"],["make_graph_by_plotter","Silicium::Dice::PolyhedronSet","Silicium/Dice/PolyhedronSet.html#method-i-make_graph_by_plotter","(x = percentage.size * 10, y = percentage.size * 10)","<p>creating a graph representing chances of getting points\n"],["middle","Silicium::Optimization","Silicium/Optimization.html#method-i-middle","(a, b)","<p>find centr of interval\n"],["middle_rectangles","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-middle_rectangles","(a, b, eps = 0.0001, &block)","<p>Middle Rectangles Method with specified accuracy\n"],["middle_rectangles_with_a_segment","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-middle_rectangles_with_a_segment","(a, b, n, &block)","<p>Middle Rectangles Method with a segment\n"],["minimal_convex_hull_2d","Silicium::Geometry","Silicium/Geometry.html#method-i-minimal_convex_hull_2d","(points)","<p>Returns an array containing points that are included in the minimal convex hull for a given array of …\n"],["needed_variables_order?","Silicium::Geometry","Silicium/Geometry.html#method-i-needed_variables_order-3F","(before, after)",""],["new","Silicium::Dice::Polyhedron","Silicium/Dice/Polyhedron.html#method-c-new","(sides)","<p>initializing polyhedron's variables there are two ways how to create it 1: by number (6) - creates …\n"],["new","Silicium::Dice::PolyhedronSet","Silicium/Dice/PolyhedronSet.html#method-c-new","(arr)",""],["new","Silicium::Geometry::Line2dCanon","Silicium/Geometry/Line2dCanon.html#method-c-new","(p1, p2)",""],["new","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-c-new","(initializer = [])",""],["new","Silicium::Plotter::Image","Silicium/Plotter/Image.html#method-c-new","(width, height, bg_color = ChunkyPNG::Color::TRANSPARENT)","<p>Creates a new plot with chosen <code>width</code> and <code>height</code> parameters with background colored <code>bg_color</code>\n"],["not_polygon?","Silicium::Geometry","Silicium/Geometry.html#method-i-not_polygon-3F","(points)",""],["oriented_area","Silicium::Geometry","Silicium/Geometry.html#method-i-oriented_area","(a, b, c)",""],["percentage","Silicium::Dice::PolyhedronSet","Silicium/Dice/PolyhedronSet.html#method-i-percentage","()",""],["point_is_on_line?","Silicium::Geometry::Line2dCanon","Silicium/Geometry/Line2dCanon.html#method-i-point_is_on_line-3F","(p1)","<p>Checks the point lies on the line or not\n"],["point_to_line_distance_3d","Silicium::Geometry","Silicium/Geometry.html#method-i-point_to_line_distance_3d","(point, line_eq)","<p>Calculates the distance from a point given by a Point3d structure to a straight line given by a canonical …\n"],["process_cf","Silicium::Geometry","Silicium/Geometry.html#method-i-process_cf","(line_equation, variable)",""],["process_free_member","Silicium::Geometry","Silicium/Geometry.html#method-i-process_free_member","(line_equation, variable)",""],["process_line_by_coordinates","Silicium::Geometry","Silicium/Geometry.html#method-i-process_line_by_coordinates","(line_equation, func)",""],["put_point_in_part","Silicium::Geometry","Silicium/Geometry.html#method-i-put_point_in_part","(part, point, direction)",""],["re_lu","Silicium::Optimization","Silicium/Optimization.html#method-i-re_lu","(x)","<p>reflector function\n"],["rectangle","Silicium::Plotter::Image","Silicium/Plotter/Image.html#method-i-rectangle","(x, y, width, height, color)",""],["sides","Silicium::Dice::Polyhedron","Silicium/Dice/Polyhedron.html#method-i-sides","()",""],["sigmoid","Silicium::Optimization","Silicium/Optimization.html#method-i-sigmoid","(x)","<p>sigmoid function\n"],["simpson_integration","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-simpson_integration","(a, b, eps = 0.0001, &block)","<p>Simpson integration with specified accuracy\n"],["simpson_integration_with_a_segment","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-simpson_integration_with_a_segment","(a, b, n, &block)","<p>Simpson integration with a segment\n"],["sorted?","Silicium::Optimization","Silicium/Optimization.html#method-i-sorted-3F","(a)","<p>return true if array is sorted\n"],["switch_step","Silicium::Optimization","Silicium/Optimization.html#method-i-switch_step","(cur_f, prev_f, step, i)","<p>switch step if current func value > previous func value\n"],["three_eights_integration","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-three_eights_integration","(a, b, eps = 0.0001, &block)","<p>Computes integral from <code>a</code> to <code>b</code> of <code>block</code> with accuracy <code>eps</code>\n"],["three_eights_integration_n","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-three_eights_integration_n","(a, b, n, &block)","<p>Computes integral from <code>a</code> to <code>b</code> of <code>block</code> with <code>n</code> segmentations\n"],["throw","Silicium::Dice::Polyhedron","Silicium/Dice/Polyhedron.html#method-i-throw","()","<p>ability to throw a polyhedron\n"],["throw","Silicium::Dice::PolyhedronSet","Silicium/Dice/PolyhedronSet.html#method-i-throw","()","<p>ability to throw a polyhedron's set using hash of chances\n"],["to_s","Silicium::Dice::Polyhedron","Silicium/Dice/Polyhedron.html#method-i-to_s","()",""],["to_s","Silicium::Dice::PolyhedronSet","Silicium/Dice/PolyhedronSet.html#method-i-to_s","()","<p>returns array of polyhedrons\n"],["trapezoid","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-trapezoid","(a, b, eps = 0.0001, &block)","<p>Trapezoid Method with specified accuracy\n"],["trapezoid_with_a_segment","Silicium::NumericalIntegration","Silicium/NumericalIntegration.html#method-c-trapezoid_with_a_segment","(a, b, n, &block)","<p>Trapezoid Method with a segment\n"],["vector_length","Silicium::Geometry","Silicium/Geometry.html#method-i-vector_length","(vector)",""],["vectors_product","Silicium::Geometry","Silicium/Geometry.html#method-i-vectors_product","(v1, v2)",""],["vertex_label_number","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-vertex_label_number","()",""],["vertex_number","Silicium::Graphs::OrientedGraph","Silicium/Graphs/OrientedGraph.html#method-i-vertex_number","()",""],["README","","README_md.html","","<p><img src=\"https://travis-ci.org/mmcs-ruby/silicium.svg?branch=master\">\n<img src=\"https://api.codeclimate.com/v1/badges/b0ec4b3029f90d4273a1/maintainability\"> ...\n"]]}}
|
Binary file
|
data/docs/js/searcher.js
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
Searcher = function(data) {
|
2
|
+
this.data = data;
|
3
|
+
this.handlers = [];
|
4
|
+
}
|
5
|
+
|
6
|
+
Searcher.prototype = new function() {
|
7
|
+
// search is performed in chunks of 1000 for non-blocking user input
|
8
|
+
var CHUNK_SIZE = 1000;
|
9
|
+
// do not try to find more than 100 results
|
10
|
+
var MAX_RESULTS = 100;
|
11
|
+
var huid = 1;
|
12
|
+
var suid = 1;
|
13
|
+
var runs = 0;
|
14
|
+
|
15
|
+
this.find = function(query) {
|
16
|
+
var queries = splitQuery(query);
|
17
|
+
var regexps = buildRegexps(queries);
|
18
|
+
var highlighters = buildHilighters(queries);
|
19
|
+
var state = { from: 0, pass: 0, limit: MAX_RESULTS, n: suid++};
|
20
|
+
var _this = this;
|
21
|
+
|
22
|
+
this.currentSuid = state.n;
|
23
|
+
|
24
|
+
if (!query) return;
|
25
|
+
|
26
|
+
var run = function() {
|
27
|
+
// stop current search thread if new search started
|
28
|
+
if (state.n != _this.currentSuid) return;
|
29
|
+
|
30
|
+
var results =
|
31
|
+
performSearch(_this.data, regexps, queries, highlighters, state);
|
32
|
+
var hasMore = (state.limit > 0 && state.pass < 4);
|
33
|
+
|
34
|
+
triggerResults.call(_this, results, !hasMore);
|
35
|
+
if (hasMore) {
|
36
|
+
setTimeout(run, 2);
|
37
|
+
}
|
38
|
+
runs++;
|
39
|
+
};
|
40
|
+
runs = 0;
|
41
|
+
|
42
|
+
// start search thread
|
43
|
+
run();
|
44
|
+
}
|
45
|
+
|
46
|
+
/* ----- Events ------ */
|
47
|
+
this.ready = function(fn) {
|
48
|
+
fn.huid = huid;
|
49
|
+
this.handlers.push(fn);
|
50
|
+
}
|
51
|
+
|
52
|
+
/* ----- Utilities ------ */
|
53
|
+
function splitQuery(query) {
|
54
|
+
return query.split(/(\s+|::?|\(\)?)/).filter(function(string) {
|
55
|
+
return string.match(/\S/);
|
56
|
+
});
|
57
|
+
}
|
58
|
+
|
59
|
+
function buildRegexps(queries) {
|
60
|
+
return queries.map(function(query) {
|
61
|
+
return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i');
|
62
|
+
});
|
63
|
+
}
|
64
|
+
|
65
|
+
function buildHilighters(queries) {
|
66
|
+
return queries.map(function(query) {
|
67
|
+
return query.split('').map(function(l, i) {
|
68
|
+
return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2);
|
69
|
+
}).join('');
|
70
|
+
});
|
71
|
+
}
|
72
|
+
|
73
|
+
// function longMatchRegexp(index, longIndex, regexps) {
|
74
|
+
// for (var i = regexps.length - 1; i >= 0; i--){
|
75
|
+
// if (!index.match(regexps[i]) && !longIndex.match(regexps[i])) return false;
|
76
|
+
// };
|
77
|
+
// return true;
|
78
|
+
// }
|
79
|
+
|
80
|
+
|
81
|
+
/* ----- Mathchers ------ */
|
82
|
+
|
83
|
+
/*
|
84
|
+
* This record matches if the index starts with queries[0] and the record
|
85
|
+
* matches all of the regexps
|
86
|
+
*/
|
87
|
+
function matchPassBeginning(index, longIndex, queries, regexps) {
|
88
|
+
if (index.indexOf(queries[0]) != 0) return false;
|
89
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
90
|
+
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
91
|
+
return false;
|
92
|
+
};
|
93
|
+
return true;
|
94
|
+
}
|
95
|
+
|
96
|
+
/*
|
97
|
+
* This record matches if the longIndex starts with queries[0] and the
|
98
|
+
* longIndex matches all of the regexps
|
99
|
+
*/
|
100
|
+
function matchPassLongIndex(index, longIndex, queries, regexps) {
|
101
|
+
if (longIndex.indexOf(queries[0]) != 0) return false;
|
102
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
103
|
+
if (!longIndex.match(regexps[i]))
|
104
|
+
return false;
|
105
|
+
};
|
106
|
+
return true;
|
107
|
+
}
|
108
|
+
|
109
|
+
/*
|
110
|
+
* This record matches if the index contains queries[0] and the record
|
111
|
+
* matches all of the regexps
|
112
|
+
*/
|
113
|
+
function matchPassContains(index, longIndex, queries, regexps) {
|
114
|
+
if (index.indexOf(queries[0]) == -1) return false;
|
115
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
116
|
+
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
117
|
+
return false;
|
118
|
+
};
|
119
|
+
return true;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* This record matches if regexps[0] matches the index and the record
|
124
|
+
* matches all of the regexps
|
125
|
+
*/
|
126
|
+
function matchPassRegexp(index, longIndex, queries, regexps) {
|
127
|
+
if (!index.match(regexps[0])) return false;
|
128
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
129
|
+
if (!index.match(regexps[i]) && !longIndex.match(regexps[i]))
|
130
|
+
return false;
|
131
|
+
};
|
132
|
+
return true;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
/* ----- Highlighters ------ */
|
137
|
+
function highlightRegexp(info, queries, regexps, highlighters) {
|
138
|
+
var result = createResult(info);
|
139
|
+
for (var i=0, l = regexps.length; i < l; i++) {
|
140
|
+
result.title = result.title.replace(regexps[i], highlighters[i]);
|
141
|
+
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
|
142
|
+
};
|
143
|
+
return result;
|
144
|
+
}
|
145
|
+
|
146
|
+
function hltSubstring(string, pos, length) {
|
147
|
+
return string.substring(0, pos) + '\u0001' + string.substring(pos, pos + length) + '\u0002' + string.substring(pos + length);
|
148
|
+
}
|
149
|
+
|
150
|
+
function highlightQuery(info, queries, regexps, highlighters) {
|
151
|
+
var result = createResult(info);
|
152
|
+
var pos = 0;
|
153
|
+
var lcTitle = result.title.toLowerCase();
|
154
|
+
|
155
|
+
pos = lcTitle.indexOf(queries[0]);
|
156
|
+
if (pos != -1) {
|
157
|
+
result.title = hltSubstring(result.title, pos, queries[0].length);
|
158
|
+
}
|
159
|
+
|
160
|
+
result.namespace = result.namespace.replace(regexps[0], highlighters[0]);
|
161
|
+
for (var i=1, l = regexps.length; i < l; i++) {
|
162
|
+
result.title = result.title.replace(regexps[i], highlighters[i]);
|
163
|
+
result.namespace = result.namespace.replace(regexps[i], highlighters[i]);
|
164
|
+
};
|
165
|
+
return result;
|
166
|
+
}
|
167
|
+
|
168
|
+
function createResult(info) {
|
169
|
+
var result = {};
|
170
|
+
result.title = info[0];
|
171
|
+
result.namespace = info[1];
|
172
|
+
result.path = info[2];
|
173
|
+
result.params = info[3];
|
174
|
+
result.snippet = info[4];
|
175
|
+
result.badge = info[6];
|
176
|
+
return result;
|
177
|
+
}
|
178
|
+
|
179
|
+
/* ----- Searching ------ */
|
180
|
+
function performSearch(data, regexps, queries, highlighters, state) {
|
181
|
+
var searchIndex = data.searchIndex;
|
182
|
+
var longSearchIndex = data.longSearchIndex;
|
183
|
+
var info = data.info;
|
184
|
+
var result = [];
|
185
|
+
var i = state.from;
|
186
|
+
var l = searchIndex.length;
|
187
|
+
var togo = CHUNK_SIZE;
|
188
|
+
var matchFunc, hltFunc;
|
189
|
+
|
190
|
+
while (state.pass < 4 && state.limit > 0 && togo > 0) {
|
191
|
+
if (state.pass == 0) {
|
192
|
+
matchFunc = matchPassBeginning;
|
193
|
+
hltFunc = highlightQuery;
|
194
|
+
} else if (state.pass == 1) {
|
195
|
+
matchFunc = matchPassLongIndex;
|
196
|
+
hltFunc = highlightQuery;
|
197
|
+
} else if (state.pass == 2) {
|
198
|
+
matchFunc = matchPassContains;
|
199
|
+
hltFunc = highlightQuery;
|
200
|
+
} else if (state.pass == 3) {
|
201
|
+
matchFunc = matchPassRegexp;
|
202
|
+
hltFunc = highlightRegexp;
|
203
|
+
}
|
204
|
+
|
205
|
+
for (; togo > 0 && i < l && state.limit > 0; i++, togo--) {
|
206
|
+
if (info[i].n == state.n) continue;
|
207
|
+
if (matchFunc(searchIndex[i], longSearchIndex[i], queries, regexps)) {
|
208
|
+
info[i].n = state.n;
|
209
|
+
result.push(hltFunc(info[i], queries, regexps, highlighters));
|
210
|
+
state.limit--;
|
211
|
+
}
|
212
|
+
};
|
213
|
+
if (searchIndex.length <= i) {
|
214
|
+
state.pass++;
|
215
|
+
i = state.from = 0;
|
216
|
+
} else {
|
217
|
+
state.from = i;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
return result;
|
221
|
+
}
|
222
|
+
|
223
|
+
function triggerResults(results, isLast) {
|
224
|
+
this.handlers.forEach(function(fn) {
|
225
|
+
fn.call(this, results, isLast)
|
226
|
+
});
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
Binary file
|
@@ -0,0 +1,608 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Table of Contents - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
<body id="top" class="table-of-contents">
|
27
|
+
<main role="main">
|
28
|
+
<h1 class="class">Table of Contents - RDoc Documentation</h1>
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
<h2 id="pages">Pages</h2>
|
33
|
+
<ul>
|
34
|
+
|
35
|
+
<li class="file">
|
36
|
+
<a href="README_md.html">README</a>
|
37
|
+
|
38
|
+
<ul>
|
39
|
+
|
40
|
+
<li><a href="README_md.html#label-Silicium">Silicium</a>
|
41
|
+
|
42
|
+
<li><a href="README_md.html#label-Installation">Installation</a>
|
43
|
+
|
44
|
+
<li><a href="README_md.html#label-Usage">Usage</a>
|
45
|
+
|
46
|
+
<li><a href="README_md.html#label-Development">Development</a>
|
47
|
+
|
48
|
+
<li><a href="README_md.html#label-Contributing">Contributing</a>
|
49
|
+
|
50
|
+
<li><a href="README_md.html#label-License">License</a>
|
51
|
+
|
52
|
+
<li><a href="README_md.html#label-Code+of+Conduct">Code of Conduct</a>
|
53
|
+
|
54
|
+
</ul>
|
55
|
+
|
56
|
+
</li>
|
57
|
+
|
58
|
+
</ul>
|
59
|
+
|
60
|
+
|
61
|
+
<h2 id="classes">Classes and Modules</h2>
|
62
|
+
<ul>
|
63
|
+
|
64
|
+
<li class="class">
|
65
|
+
<a href="Object.html">Object</a>
|
66
|
+
|
67
|
+
</li>
|
68
|
+
|
69
|
+
<li class="module">
|
70
|
+
<a href="Silicium.html">Silicium</a>
|
71
|
+
|
72
|
+
</li>
|
73
|
+
|
74
|
+
<li class="module">
|
75
|
+
<a href="Silicium/Combinatorics.html">Silicium::Combinatorics</a>
|
76
|
+
|
77
|
+
</li>
|
78
|
+
|
79
|
+
<li class="module">
|
80
|
+
<a href="Silicium/Dice.html">Silicium::Dice</a>
|
81
|
+
|
82
|
+
</li>
|
83
|
+
|
84
|
+
<li class="class">
|
85
|
+
<a href="Silicium/Dice/Polyhedron.html">Silicium::Dice::Polyhedron</a>
|
86
|
+
|
87
|
+
</li>
|
88
|
+
|
89
|
+
<li class="class">
|
90
|
+
<a href="Silicium/Dice/PolyhedronSet.html">Silicium::Dice::PolyhedronSet</a>
|
91
|
+
|
92
|
+
</li>
|
93
|
+
|
94
|
+
<li class="class">
|
95
|
+
<a href="Silicium/Error.html">Silicium::Error</a>
|
96
|
+
|
97
|
+
</li>
|
98
|
+
|
99
|
+
<li class="module">
|
100
|
+
<a href="Silicium/Geometry.html">Silicium::Geometry</a>
|
101
|
+
|
102
|
+
</li>
|
103
|
+
|
104
|
+
<li class="class">
|
105
|
+
<a href="Silicium/Geometry/Line2dCanon.html">Silicium::Geometry::Line2dCanon</a>
|
106
|
+
|
107
|
+
</li>
|
108
|
+
|
109
|
+
<li class="class">
|
110
|
+
<a href="Silicium/Geometry/VariablesOrderException.html">Silicium::Geometry::VariablesOrderException</a>
|
111
|
+
|
112
|
+
</li>
|
113
|
+
|
114
|
+
<li class="module">
|
115
|
+
<a href="Silicium/Graphs.html">Silicium::Graphs</a>
|
116
|
+
|
117
|
+
</li>
|
118
|
+
|
119
|
+
<li class="class">
|
120
|
+
<a href="Silicium/Graphs/GraphError.html">Silicium::Graphs::GraphError</a>
|
121
|
+
|
122
|
+
</li>
|
123
|
+
|
124
|
+
<li class="class">
|
125
|
+
<a href="Silicium/Graphs/OrientedGraph.html">Silicium::Graphs::OrientedGraph</a>
|
126
|
+
|
127
|
+
</li>
|
128
|
+
|
129
|
+
<li class="class">
|
130
|
+
<a href="Silicium/Graphs/UnorientedGraph.html">Silicium::Graphs::UnorientedGraph</a>
|
131
|
+
|
132
|
+
</li>
|
133
|
+
|
134
|
+
<li class="class">
|
135
|
+
<a href="Silicium/IntegralDoesntExistError.html">Silicium::IntegralDoesntExistError</a>
|
136
|
+
|
137
|
+
</li>
|
138
|
+
|
139
|
+
<li class="class">
|
140
|
+
<a href="Silicium/NumericalIntegration.html">Silicium::NumericalIntegration</a>
|
141
|
+
|
142
|
+
</li>
|
143
|
+
|
144
|
+
<li class="module">
|
145
|
+
<a href="Silicium/Optimization.html">Silicium::Optimization</a>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
<li class="module">
|
150
|
+
<a href="Silicium/Plotter.html">Silicium::Plotter</a>
|
151
|
+
|
152
|
+
</li>
|
153
|
+
|
154
|
+
<li class="class">
|
155
|
+
<a href="Silicium/Plotter/Image.html">Silicium::Plotter::Image</a>
|
156
|
+
|
157
|
+
</li>
|
158
|
+
|
159
|
+
</ul>
|
160
|
+
|
161
|
+
<h2 id="methods">Methods</h2>
|
162
|
+
<ul>
|
163
|
+
|
164
|
+
<li class="method">
|
165
|
+
<a href="Silicium/NumericalIntegration.html#method-c-left_rect_integration">::left_rect_integration</a>
|
166
|
+
—
|
167
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
168
|
+
|
169
|
+
<li class="method">
|
170
|
+
<a href="Silicium/NumericalIntegration.html#method-c-left_rect_integration_n">::left_rect_integration_n</a>
|
171
|
+
—
|
172
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
173
|
+
|
174
|
+
<li class="method">
|
175
|
+
<a href="Silicium/NumericalIntegration.html#method-c-middle_rectangles">::middle_rectangles</a>
|
176
|
+
—
|
177
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
178
|
+
|
179
|
+
<li class="method">
|
180
|
+
<a href="Silicium/NumericalIntegration.html#method-c-middle_rectangles_with_a_segment">::middle_rectangles_with_a_segment</a>
|
181
|
+
—
|
182
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
183
|
+
|
184
|
+
<li class="method">
|
185
|
+
<a href="Silicium/Geometry/Line2dCanon.html#method-c-new">::new</a>
|
186
|
+
—
|
187
|
+
<span class="container">Silicium::Geometry::Line2dCanon</span>
|
188
|
+
|
189
|
+
<li class="method">
|
190
|
+
<a href="Silicium/Dice/PolyhedronSet.html#method-c-new">::new</a>
|
191
|
+
—
|
192
|
+
<span class="container">Silicium::Dice::PolyhedronSet</span>
|
193
|
+
|
194
|
+
<li class="method">
|
195
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-c-new">::new</a>
|
196
|
+
—
|
197
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
198
|
+
|
199
|
+
<li class="method">
|
200
|
+
<a href="Silicium/Dice/Polyhedron.html#method-c-new">::new</a>
|
201
|
+
—
|
202
|
+
<span class="container">Silicium::Dice::Polyhedron</span>
|
203
|
+
|
204
|
+
<li class="method">
|
205
|
+
<a href="Silicium/Plotter/Image.html#method-c-new">::new</a>
|
206
|
+
—
|
207
|
+
<span class="container">Silicium::Plotter::Image</span>
|
208
|
+
|
209
|
+
<li class="method">
|
210
|
+
<a href="Silicium/NumericalIntegration.html#method-c-simpson_integration">::simpson_integration</a>
|
211
|
+
—
|
212
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
213
|
+
|
214
|
+
<li class="method">
|
215
|
+
<a href="Silicium/NumericalIntegration.html#method-c-simpson_integration_with_a_segment">::simpson_integration_with_a_segment</a>
|
216
|
+
—
|
217
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
218
|
+
|
219
|
+
<li class="method">
|
220
|
+
<a href="Silicium/NumericalIntegration.html#method-c-three_eights_integration">::three_eights_integration</a>
|
221
|
+
—
|
222
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
223
|
+
|
224
|
+
<li class="method">
|
225
|
+
<a href="Silicium/NumericalIntegration.html#method-c-three_eights_integration_n">::three_eights_integration_n</a>
|
226
|
+
—
|
227
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
228
|
+
|
229
|
+
<li class="method">
|
230
|
+
<a href="Silicium/NumericalIntegration.html#method-c-trapezoid">::trapezoid</a>
|
231
|
+
—
|
232
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
233
|
+
|
234
|
+
<li class="method">
|
235
|
+
<a href="Silicium/NumericalIntegration.html#method-c-trapezoid_with_a_segment">::trapezoid_with_a_segment</a>
|
236
|
+
—
|
237
|
+
<span class="container">Silicium::NumericalIntegration</span>
|
238
|
+
|
239
|
+
<li class="method">
|
240
|
+
<a href="Silicium/Optimization.html#method-i-accuracy">#accuracy</a>
|
241
|
+
—
|
242
|
+
<span class="container">Silicium::Optimization</span>
|
243
|
+
|
244
|
+
<li class="method">
|
245
|
+
<a href="Silicium/Graphs/UnorientedGraph.html#method-i-add_edge-21">#add_edge!</a>
|
246
|
+
—
|
247
|
+
<span class="container">Silicium::Graphs::UnorientedGraph</span>
|
248
|
+
|
249
|
+
<li class="method">
|
250
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-add_edge-21">#add_edge!</a>
|
251
|
+
—
|
252
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
253
|
+
|
254
|
+
<li class="method">
|
255
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-add_edge_force-21">#add_edge_force!</a>
|
256
|
+
—
|
257
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
258
|
+
|
259
|
+
<li class="method">
|
260
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-add_vertex-21">#add_vertex!</a>
|
261
|
+
—
|
262
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
263
|
+
|
264
|
+
<li class="method">
|
265
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-adjacted_with">#adjacted_with</a>
|
266
|
+
—
|
267
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
268
|
+
|
269
|
+
<li class="method">
|
270
|
+
<a href="Silicium/Combinatorics.html#method-i-arrangement">#arrangement</a>
|
271
|
+
—
|
272
|
+
<span class="container">Silicium::Combinatorics</span>
|
273
|
+
|
274
|
+
<li class="method">
|
275
|
+
<a href="Silicium/Plotter/Image.html#method-i-bar_chart">#bar_chart</a>
|
276
|
+
—
|
277
|
+
<span class="container">Silicium::Plotter::Image</span>
|
278
|
+
|
279
|
+
<li class="method">
|
280
|
+
<a href="Silicium/Optimization.html#method-i-bogosort">#bogosort</a>
|
281
|
+
—
|
282
|
+
<span class="container">Silicium::Optimization</span>
|
283
|
+
|
284
|
+
<li class="method">
|
285
|
+
<a href="Silicium/Optimization.html#method-i-bogosort-21">#bogosort!</a>
|
286
|
+
—
|
287
|
+
<span class="container">Silicium::Optimization</span>
|
288
|
+
|
289
|
+
<li class="method">
|
290
|
+
<a href="Silicium/Geometry.html#method-i-clockwise">#clockwise</a>
|
291
|
+
—
|
292
|
+
<span class="container">Silicium::Geometry</span>
|
293
|
+
|
294
|
+
<li class="method">
|
295
|
+
<a href="Silicium/Plotter.html#method-i-color">#color</a>
|
296
|
+
—
|
297
|
+
<span class="container">Silicium::Plotter</span>
|
298
|
+
|
299
|
+
<li class="method">
|
300
|
+
<a href="Silicium/Combinatorics.html#method-i-combination">#combination</a>
|
301
|
+
—
|
302
|
+
<span class="container">Silicium::Combinatorics</span>
|
303
|
+
|
304
|
+
<li class="method">
|
305
|
+
<a href="Silicium/Geometry.html#method-i-counter_clockwise">#counter_clockwise</a>
|
306
|
+
—
|
307
|
+
<span class="container">Silicium::Geometry</span>
|
308
|
+
|
309
|
+
<li class="method">
|
310
|
+
<a href="Silicium/Dice/Polyhedron.html#method-i-csides">#csides</a>
|
311
|
+
—
|
312
|
+
<span class="container">Silicium::Dice::Polyhedron</span>
|
313
|
+
|
314
|
+
<li class="method">
|
315
|
+
<a href="Silicium/Geometry.html#method-i-cut_by_eq">#cut_by_eq</a>
|
316
|
+
—
|
317
|
+
<span class="container">Silicium::Geometry</span>
|
318
|
+
|
319
|
+
<li class="method">
|
320
|
+
<a href="Silicium/Graphs/UnorientedGraph.html#method-i-delete_edge-21">#delete_edge!</a>
|
321
|
+
—
|
322
|
+
<span class="container">Silicium::Graphs::UnorientedGraph</span>
|
323
|
+
|
324
|
+
<li class="method">
|
325
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-delete_edge-21">#delete_edge!</a>
|
326
|
+
—
|
327
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
328
|
+
|
329
|
+
<li class="method">
|
330
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-delete_vertex-21">#delete_vertex!</a>
|
331
|
+
—
|
332
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
333
|
+
|
334
|
+
<li class="method">
|
335
|
+
<a href="Silicium/Graphs.html#method-i-dijkstra_algorythm">#dijkstra_algorythm</a>
|
336
|
+
—
|
337
|
+
<span class="container">Silicium::Graphs</span>
|
338
|
+
|
339
|
+
<li class="method">
|
340
|
+
<a href="Silicium/Geometry.html#method-i-directing_vector3d">#directing_vector3d</a>
|
341
|
+
—
|
342
|
+
<span class="container">Silicium::Geometry</span>
|
343
|
+
|
344
|
+
<li class="method">
|
345
|
+
<a href="Silicium/Geometry.html#method-i-distance_point_line2d">#distance_point_line2d</a>
|
346
|
+
—
|
347
|
+
<span class="container">Silicium::Geometry</span>
|
348
|
+
|
349
|
+
<li class="method">
|
350
|
+
<a href="Silicium/Geometry.html#method-i-distance_point_line_equation2d">#distance_point_line_equation2d</a>
|
351
|
+
—
|
352
|
+
<span class="container">Silicium::Geometry</span>
|
353
|
+
|
354
|
+
<li class="method">
|
355
|
+
<a href="Silicium/Geometry.html#method-i-distance_point_to_point2d">#distance_point_to_point2d</a>
|
356
|
+
—
|
357
|
+
<span class="container">Silicium::Geometry</span>
|
358
|
+
|
359
|
+
<li class="method">
|
360
|
+
<a href="Silicium/Geometry.html#method-i-distance_point_to_point3d">#distance_point_to_point3d</a>
|
361
|
+
—
|
362
|
+
<span class="container">Silicium::Geometry</span>
|
363
|
+
|
364
|
+
<li class="method">
|
365
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-edge_label_number">#edge_label_number</a>
|
366
|
+
—
|
367
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
368
|
+
|
369
|
+
<li class="method">
|
370
|
+
<a href="Silicium/Graphs/UnorientedGraph.html#method-i-edge_number">#edge_number</a>
|
371
|
+
—
|
372
|
+
<span class="container">Silicium::Graphs::UnorientedGraph</span>
|
373
|
+
|
374
|
+
<li class="method">
|
375
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-edge_number">#edge_number</a>
|
376
|
+
—
|
377
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
378
|
+
|
379
|
+
<li class="method">
|
380
|
+
<a href="Silicium/Plotter/Image.html#method-i-export">#export</a>
|
381
|
+
—
|
382
|
+
<span class="container">Silicium::Plotter::Image</span>
|
383
|
+
|
384
|
+
<li class="method">
|
385
|
+
<a href="Silicium/Combinatorics.html#method-i-fact">#fact</a>
|
386
|
+
—
|
387
|
+
<span class="container">Silicium::Combinatorics</span>
|
388
|
+
|
389
|
+
<li class="method">
|
390
|
+
<a href="Silicium/Combinatorics.html#method-i-factorial">#factorial</a>
|
391
|
+
—
|
392
|
+
<span class="container">Silicium::Combinatorics</span>
|
393
|
+
|
394
|
+
<li class="method">
|
395
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-get_edge_label">#get_edge_label</a>
|
396
|
+
—
|
397
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
398
|
+
|
399
|
+
<li class="method">
|
400
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-get_vertex_label">#get_vertex_label</a>
|
401
|
+
—
|
402
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
403
|
+
|
404
|
+
<li class="method">
|
405
|
+
<a href="Silicium/Optimization.html#method-i-half_division">#half_division</a>
|
406
|
+
—
|
407
|
+
<span class="container">Silicium::Optimization</span>
|
408
|
+
|
409
|
+
<li class="method">
|
410
|
+
<a href="Silicium/Optimization.html#method-i-half_division_step">#half_division_step</a>
|
411
|
+
—
|
412
|
+
<span class="container">Silicium::Optimization</span>
|
413
|
+
|
414
|
+
<li class="method">
|
415
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-has_edge-3F">#has_edge?</a>
|
416
|
+
—
|
417
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
418
|
+
|
419
|
+
<li class="method">
|
420
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-has_vertex-3F">#has_vertex?</a>
|
421
|
+
—
|
422
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
423
|
+
|
424
|
+
<li class="method">
|
425
|
+
<a href="Silicium/Geometry.html#method-i-height_point_3d">#height_point_3d</a>
|
426
|
+
—
|
427
|
+
<span class="container">Silicium::Geometry</span>
|
428
|
+
|
429
|
+
<li class="method">
|
430
|
+
<a href="Silicium/Optimization.html#method-i-hook_jeeves">#hook_jeeves</a>
|
431
|
+
—
|
432
|
+
<span class="container">Silicium::Optimization</span>
|
433
|
+
|
434
|
+
<li class="method">
|
435
|
+
<a href="Silicium/Optimization.html#method-i-hook_jeeves_step">#hook_jeeves_step</a>
|
436
|
+
—
|
437
|
+
<span class="container">Silicium::Optimization</span>
|
438
|
+
|
439
|
+
<li class="method">
|
440
|
+
<a href="Silicium/Geometry.html#method-i-insert_eq">#insert_eq</a>
|
441
|
+
—
|
442
|
+
<span class="container">Silicium::Geometry</span>
|
443
|
+
|
444
|
+
<li class="method">
|
445
|
+
<a href="Silicium/Optimization.html#method-i-integrating_Monte_Carlo_base">#integrating_Monte_Carlo_base</a>
|
446
|
+
—
|
447
|
+
<span class="container">Silicium::Optimization</span>
|
448
|
+
|
449
|
+
<li class="method">
|
450
|
+
<a href="Silicium/Graphs/UnorientedGraph.html#method-i-label_edge-21">#label_edge!</a>
|
451
|
+
—
|
452
|
+
<span class="container">Silicium::Graphs::UnorientedGraph</span>
|
453
|
+
|
454
|
+
<li class="method">
|
455
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-label_edge-21">#label_edge!</a>
|
456
|
+
—
|
457
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
458
|
+
|
459
|
+
<li class="method">
|
460
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-label_vertex-21">#label_vertex!</a>
|
461
|
+
—
|
462
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
463
|
+
|
464
|
+
<li class="method">
|
465
|
+
<a href="Silicium/Dice/PolyhedronSet.html#method-i-make_graph_by_plotter">#make_graph_by_plotter</a>
|
466
|
+
—
|
467
|
+
<span class="container">Silicium::Dice::PolyhedronSet</span>
|
468
|
+
|
469
|
+
<li class="method">
|
470
|
+
<a href="Silicium/Optimization.html#method-i-middle">#middle</a>
|
471
|
+
—
|
472
|
+
<span class="container">Silicium::Optimization</span>
|
473
|
+
|
474
|
+
<li class="method">
|
475
|
+
<a href="Silicium/Geometry.html#method-i-minimal_convex_hull_2d">#minimal_convex_hull_2d</a>
|
476
|
+
—
|
477
|
+
<span class="container">Silicium::Geometry</span>
|
478
|
+
|
479
|
+
<li class="method">
|
480
|
+
<a href="Silicium/Geometry.html#method-i-needed_variables_order-3F">#needed_variables_order?</a>
|
481
|
+
—
|
482
|
+
<span class="container">Silicium::Geometry</span>
|
483
|
+
|
484
|
+
<li class="method">
|
485
|
+
<a href="Silicium/Geometry.html#method-i-not_polygon-3F">#not_polygon?</a>
|
486
|
+
—
|
487
|
+
<span class="container">Silicium::Geometry</span>
|
488
|
+
|
489
|
+
<li class="method">
|
490
|
+
<a href="Silicium/Geometry.html#method-i-oriented_area">#oriented_area</a>
|
491
|
+
—
|
492
|
+
<span class="container">Silicium::Geometry</span>
|
493
|
+
|
494
|
+
<li class="method">
|
495
|
+
<a href="Silicium/Dice/PolyhedronSet.html#method-i-percentage">#percentage</a>
|
496
|
+
—
|
497
|
+
<span class="container">Silicium::Dice::PolyhedronSet</span>
|
498
|
+
|
499
|
+
<li class="method">
|
500
|
+
<a href="Silicium/Geometry/Line2dCanon.html#method-i-point_is_on_line-3F">#point_is_on_line?</a>
|
501
|
+
—
|
502
|
+
<span class="container">Silicium::Geometry::Line2dCanon</span>
|
503
|
+
|
504
|
+
<li class="method">
|
505
|
+
<a href="Silicium/Geometry.html#method-i-point_to_line_distance_3d">#point_to_line_distance_3d</a>
|
506
|
+
—
|
507
|
+
<span class="container">Silicium::Geometry</span>
|
508
|
+
|
509
|
+
<li class="method">
|
510
|
+
<a href="Silicium/Geometry.html#method-i-process_cf">#process_cf</a>
|
511
|
+
—
|
512
|
+
<span class="container">Silicium::Geometry</span>
|
513
|
+
|
514
|
+
<li class="method">
|
515
|
+
<a href="Silicium/Geometry.html#method-i-process_free_member">#process_free_member</a>
|
516
|
+
—
|
517
|
+
<span class="container">Silicium::Geometry</span>
|
518
|
+
|
519
|
+
<li class="method">
|
520
|
+
<a href="Silicium/Geometry.html#method-i-process_line_by_coordinates">#process_line_by_coordinates</a>
|
521
|
+
—
|
522
|
+
<span class="container">Silicium::Geometry</span>
|
523
|
+
|
524
|
+
<li class="method">
|
525
|
+
<a href="Silicium/Geometry.html#method-i-put_point_in_part">#put_point_in_part</a>
|
526
|
+
—
|
527
|
+
<span class="container">Silicium::Geometry</span>
|
528
|
+
|
529
|
+
<li class="method">
|
530
|
+
<a href="Silicium/Optimization.html#method-i-re_lu">#re_lu</a>
|
531
|
+
—
|
532
|
+
<span class="container">Silicium::Optimization</span>
|
533
|
+
|
534
|
+
<li class="method">
|
535
|
+
<a href="Silicium/Plotter/Image.html#method-i-rectangle">#rectangle</a>
|
536
|
+
—
|
537
|
+
<span class="container">Silicium::Plotter::Image</span>
|
538
|
+
|
539
|
+
<li class="method">
|
540
|
+
<a href="Silicium/Dice/Polyhedron.html#method-i-sides">#sides</a>
|
541
|
+
—
|
542
|
+
<span class="container">Silicium::Dice::Polyhedron</span>
|
543
|
+
|
544
|
+
<li class="method">
|
545
|
+
<a href="Silicium/Optimization.html#method-i-sigmoid">#sigmoid</a>
|
546
|
+
—
|
547
|
+
<span class="container">Silicium::Optimization</span>
|
548
|
+
|
549
|
+
<li class="method">
|
550
|
+
<a href="Silicium/Optimization.html#method-i-sorted-3F">#sorted?</a>
|
551
|
+
—
|
552
|
+
<span class="container">Silicium::Optimization</span>
|
553
|
+
|
554
|
+
<li class="method">
|
555
|
+
<a href="Silicium/Optimization.html#method-i-switch_step">#switch_step</a>
|
556
|
+
—
|
557
|
+
<span class="container">Silicium::Optimization</span>
|
558
|
+
|
559
|
+
<li class="method">
|
560
|
+
<a href="Silicium/Dice/Polyhedron.html#method-i-throw">#throw</a>
|
561
|
+
—
|
562
|
+
<span class="container">Silicium::Dice::Polyhedron</span>
|
563
|
+
|
564
|
+
<li class="method">
|
565
|
+
<a href="Silicium/Dice/PolyhedronSet.html#method-i-throw">#throw</a>
|
566
|
+
—
|
567
|
+
<span class="container">Silicium::Dice::PolyhedronSet</span>
|
568
|
+
|
569
|
+
<li class="method">
|
570
|
+
<a href="Silicium/Dice/PolyhedronSet.html#method-i-to_s">#to_s</a>
|
571
|
+
—
|
572
|
+
<span class="container">Silicium::Dice::PolyhedronSet</span>
|
573
|
+
|
574
|
+
<li class="method">
|
575
|
+
<a href="Silicium/Dice/Polyhedron.html#method-i-to_s">#to_s</a>
|
576
|
+
—
|
577
|
+
<span class="container">Silicium::Dice::Polyhedron</span>
|
578
|
+
|
579
|
+
<li class="method">
|
580
|
+
<a href="Silicium/Geometry.html#method-i-vector_length">#vector_length</a>
|
581
|
+
—
|
582
|
+
<span class="container">Silicium::Geometry</span>
|
583
|
+
|
584
|
+
<li class="method">
|
585
|
+
<a href="Silicium/Geometry.html#method-i-vectors_product">#vectors_product</a>
|
586
|
+
—
|
587
|
+
<span class="container">Silicium::Geometry</span>
|
588
|
+
|
589
|
+
<li class="method">
|
590
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-vertex_label_number">#vertex_label_number</a>
|
591
|
+
—
|
592
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
593
|
+
|
594
|
+
<li class="method">
|
595
|
+
<a href="Silicium/Graphs/OrientedGraph.html#method-i-vertex_number">#vertex_number</a>
|
596
|
+
—
|
597
|
+
<span class="container">Silicium::Graphs::OrientedGraph</span>
|
598
|
+
|
599
|
+
</ul>
|
600
|
+
</main>
|
601
|
+
|
602
|
+
|
603
|
+
<footer id="validator-badges" role="contentinfo">
|
604
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
605
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.0.
|
606
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
607
|
+
</footer>
|
608
|
+
|