diff --git a/data-explorer/kusto/query/funnel-sequence-completion-plugin.md b/data-explorer/kusto/query/funnel-sequence-completion-plugin.md index e534076acd..18893015db 100644 --- a/data-explorer/kusto/query/funnel-sequence-completion-plugin.md +++ b/data-explorer/kusto/query/funnel-sequence-completion-plugin.md @@ -42,9 +42,8 @@ Returns a single table useful for constructing a funnel diagram for the analyzed ## Examples -### Exploring Storm Events - -The following query checks the completion funnel of the sequence: `Hail` -> `Tornado` -> `Thunderstorm Wind` +The following examples show how to use the `funnel_sequence_completion` plugin to analyze storm events. +The query checks the completion funnel of the sequence: `Hail` -> `Tornado` -> `Thunderstorm Wind` in "overall" time of 1hour, 4hours, 1day. :::moniker range="azure-data-explorer" diff --git a/data-explorer/kusto/query/funnel-sequence-plugin.md b/data-explorer/kusto/query/funnel-sequence-plugin.md index d08c0e66d6..62c047566e 100644 --- a/data-explorer/kusto/query/funnel-sequence-plugin.md +++ b/data-explorer/kusto/query/funnel-sequence-plugin.md @@ -56,9 +56,8 @@ Returns three output tables, which are useful for constructing a sankey diagram ## Examples -### Exploring storm events - -The following query looks at the table StormEvents (weather statistics for 2007) and shows which events happened before/after all Tornado events occurred in 2007. +The following examples show how to use the `funnel_sequence` plugin to analyze storm events. +The query looks at the table StormEvents (weather statistics for 2007) and shows which events happened before/after all Tornado events occurred in 2007. :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] diff --git a/data-explorer/kusto/query/gamma-function.md b/data-explorer/kusto/query/gamma-function.md index 7c4b773200..2abb723678 100644 --- a/data-explorer/kusto/query/gamma-function.md +++ b/data-explorer/kusto/query/gamma-function.md @@ -27,6 +27,25 @@ Computes the gamma function for the provided *number*. Gamma function of *number*. +## Examples + +The following example shows how to use the `gamma()` function to compute the gamma of the input parameter. + +:::moniker range="azure-data-explorer" +> [!div class="nextstepaction"] +> Run the query +::: moniker-end + +```kusto +print result = gamma(5) +``` + +Output: + +| result | +|--------| +| 24 | + ## Related content For computing log-gamma function, see [loggamma()](loggamma-function.md). diff --git a/data-explorer/kusto/query/geo-angle-function.md b/data-explorer/kusto/query/geo-angle-function.md index 8486aaf1b4..2fa593ea60 100644 --- a/data-explorer/kusto/query/geo-angle-function.md +++ b/data-explorer/kusto/query/geo-angle-function.md @@ -95,4 +95,3 @@ print is_null = isnull(geo_angle(0, 10, 0, 10, 3, -10)) |is_null| |---| |True| - diff --git a/data-explorer/kusto/query/geo-closest-point-on-polygon-function.md b/data-explorer/kusto/query/geo-closest-point-on-polygon-function.md index dede92c74f..917e071d08 100644 --- a/data-explorer/kusto/query/geo-closest-point-on-polygon-function.md +++ b/data-explorer/kusto/query/geo-closest-point-on-polygon-function.md @@ -75,7 +75,6 @@ print geo_closest_point_on_polygon(-73.9839, 40.7705, central_park) |---| |{"type": "Point","coordinates": [-73.981205580153926, 40.769359452843211] }| - The following example returns a null result because of the invalid coordinate input. :::moniker range="azure-data-explorer" diff --git a/data-explorer/kusto/query/geo-distance-point-to-line-function.md b/data-explorer/kusto/query/geo-distance-point-to-line-function.md index 003efcc523..732aedeaea 100644 --- a/data-explorer/kusto/query/geo-distance-point-to-line-function.md +++ b/data-explorer/kusto/query/geo-distance-point-to-line-function.md @@ -52,8 +52,6 @@ dynamic({"type": "MultiLineString","coordinates": [[line_1, line_2, ..., line_N] ## Examples -### Shortest distance to airport - The following example finds the shortest distance between North Las Vegas Airport and a nearby road. :::image type="content" source="media/geo-distance-point-to-line-function/distance-point-to-line.png" alt-text="Screenshot of a map showing the distance between North Las Vegas Airport and a specific road."::: @@ -73,8 +71,6 @@ print distance_in_meters = geo_distance_point_to_line(-115.199625, 36.210419, dy |--------------------| | 3797.88887253334 | -### Storm events across the south coast - The following example finds storm events along the US south coast filtered by a maximum distance of 5 km from the defined shore line. :::moniker range="azure-data-explorer" @@ -94,8 +90,6 @@ StormEvents :::image type="content" source="media/geo-distance-point-to-line-function/us-south-coast-storm-events.png" alt-text="Screenshot of rendered storm events along the south coast of the US."::: -### New York taxi pickups - The following example finds New York taxi pickups filtered by a maximum distance of 0.1 meters from the defined multiline. :::moniker range="azure-data-explorer" @@ -149,8 +143,6 @@ nyc_taxi :::image type="content" source="media/geo-distance-point-to-line-function/lines-folding.png" alt-text="Screenshot of a query map rendering example of lines folded into a multiline. The example is all taxi pickups 10 km away from all Manhattan roads."::: -### Invalid LineString - The following example returns a null result because of the invalid LineString input. :::moniker range="azure-data-explorer" @@ -168,8 +160,6 @@ print distance_in_meters = geo_distance_point_to_line(1,1, dynamic({ "type":"Lin |--------------------| | | -### Invalid coordinate - The following example returns a null result because of the invalid coordinate input. :::moniker range="azure-data-explorer" diff --git a/data-explorer/kusto/query/geo-geohash-to-central-point-function.md b/data-explorer/kusto/query/geo-geohash-to-central-point-function.md index 5674cb1ec8..acdea8fe4e 100644 --- a/data-explorer/kusto/query/geo-geohash-to-central-point-function.md +++ b/data-explorer/kusto/query/geo-geohash-to-central-point-function.md @@ -34,6 +34,8 @@ The geospatial coordinate values in [GeoJSON Format](https://tools.ietf.org/html ## Examples +The following example calculates the geospatial coordinates that represent the center of a geohash rectangular area. + :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] > Run the query @@ -68,8 +70,6 @@ print geohash = geo_geohash_to_central_point("a") |---| || -### Creating location deep-links for Bing Maps - You can use the geohash value to create a deep-link URL to Bing Maps by pointing to the geohash center point: :::moniker range="azure-data-explorer" diff --git a/data-explorer/kusto/query/geo-geohash-to-polygon-function.md b/data-explorer/kusto/query/geo-geohash-to-polygon-function.md index ba612c1572..e0bf56ab85 100644 --- a/data-explorer/kusto/query/geo-geohash-to-polygon-function.md +++ b/data-explorer/kusto/query/geo-geohash-to-polygon-function.md @@ -34,6 +34,8 @@ Polygon in [GeoJSON Format](https://tools.ietf.org/html/rfc7946) and of a [dynam ## Examples +The following example calculates the polygon that represents the geohash rectangular area. + :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] > Run the query diff --git a/data-explorer/kusto/query/geo-h3cell-children-function.md b/data-explorer/kusto/query/geo-h3cell-children-function.md index d36781766f..75c8366f58 100644 --- a/data-explorer/kusto/query/geo-h3cell-children-function.md +++ b/data-explorer/kusto/query/geo-h3cell-children-function.md @@ -36,6 +36,8 @@ Array of H3 Cell children tokens. If the H3 Cell is invalid or child resolution ## Examples +The following example calculates the H3 cell children. + :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] > Run the query diff --git a/data-explorer/kusto/query/geo-h3cell-level-function.md b/data-explorer/kusto/query/geo-h3cell-level-function.md index 7bef84b687..b702a18a78 100644 --- a/data-explorer/kusto/query/geo-h3cell-level-function.md +++ b/data-explorer/kusto/query/geo-h3cell-level-function.md @@ -31,6 +31,8 @@ An integer that represents H3 Cell level. Valid level is in range [0, 15]. If th ## Examples +The following example calculates the H3 cell resolution. + :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] > Run the query @@ -46,6 +48,7 @@ print cell_res = geo_h3cell_level('862a1072fffffff') |---| |6| + :::moniker range="azure-data-explorer" > [!div class="nextstepaction"] > Run the query