Generate linear buckets for a histogram.
required ARRAY<FLOAT64>, `values` ARRAY<FLOAT64>
+min FLOAT64, max FLOAT64, nBuckets FLOAT64
+
+OUTPUTS
+ARRAY<FLOAT64>DETERMINISTIC
+
+Source | Edit
+
+Create an empty histogram from an array of buckets.
+Parameters
+INPUTS
+
OUTPUTS
ARRAY<STRUCT<key STRING, value FLOAT64>>
-Source | Edit
+Source | Edit
+histogram_cast_json (UDF)
+Cast a histogram into a JSON blob.
+Parameters
+INPUTS
+histogram ARRAY<STRUCT<key STRING, value FLOAT64>>
+
+OUTPUTS
+
+Source | Edit
+histogram_fill_buckets (UDF)
+Interpolate missing histogram buckets with empty buckets.
+Parameters
+INPUTS
+input_map ARRAY<STRUCT<key STRING, value FLOAT64>>, buckets ARRAY<STRING>
+
+OUTPUTS
+ARRAY<STRUCT<key STRING, value FLOAT64>>
+
+Source | Edit
map_from_array_offsets_precise (UDF)
-Parameters
+Parameters
INPUTS
required ARRAY<FLOAT64>, `values` ARRAY<FLOAT64>
@@ -4008,7 +4039,7 @@ Parameters
Source | Edit
histogram_generate_scalar_buckets (UDF)
Generate scalar buckets for a histogram using a fixed number of buckets.
-Parameters
+Parameters
INPUTS
min_bucket FLOAT64, max_bucket FLOAT64, num_buckets INT64
@@ -4018,7 +4049,7 @@ Parameters
Source | Edit
histogram_generate_exponential_buckets (UDF)
Generate exponential buckets for a histogram.
-Parameters
+Parameters
INPUTS
min FLOAT64, max FLOAT64, nBuckets FLOAT64
@@ -4026,18 +4057,23 @@ Parameters
ARRAY<FLOAT64>DETERMINISTIC
Source | Edit
-fenix_build_to_build_hour (UDF)
-Returns a custom build id generated from the build hour of a Fenix build.
-Parameters
+histogram_generate_functional_buckets (UDF)
+Generate functional buckets for a histogram. This is specific to Glean.
+See: https://github.com/mozilla/glean/blob/main/glean-core/src/histogram/functional.rs
+A functional bucketing algorithm. The bucket index of a given sample is
+determined with the following function:
+i = $$ \lfloor{n log_{\text{base}}{(x)}}\rfloor $$
+In other words, there are n buckets for each power of base
magnitude.
+Parameters
INPUTS
-app_build_id STRING
+log_base INT64, buckets_per_magnitude INT64, range_max INT64
OUTPUTS
-STRING
+ARRAY<FLOAT64>DETERMINISTIC
-Source | Edit
+Source | Edit
histogram_bucket_from_value (UDF)
-Parameters
+Parameters
INPUTS
buckets ARRAY<STRING>, val FLOAT64
@@ -4047,7 +4083,7 @@ Parameters
Source | Edit
build_hour_to_datetime (UDF)
Parses the custom build id used for Fenix builds in GLAM to a datetime.
-Parameters
+Parameters
INPUTS
@@ -4057,7 +4093,7 @@ Parameters
Source | Edit
percentile (UDF)
Get the value of the approximate CDF at the given percentile.
-Parameters
+Parameters
INPUTS
percentile FLOAT64, histogram ARRAY<STRUCT<key STRING, value FLOAT64>>, type STRING
@@ -4067,7 +4103,7 @@ Parameters
Source | Edit
histogram_normalized_sum (UDF)
Compute the normalized sum of an array of histograms.
-Parameters
+Parameters
INPUTS
arrs ARRAY<STRUCT<key STRING, value INT64>>, weight FLOAT64
@@ -4075,16 +4111,15 @@ Parameters
ARRAY<STRUCT<key STRING, value FLOAT64>>
Source | Edit
-histogram_fill_buckets (UDF)
-Interpolate missing histogram buckets with empty buckets.
-Parameters
+map_from_array_offsets (UDF)
+Parameters
INPUTS
-input_map ARRAY<STRUCT<key STRING, value FLOAT64>>, buckets ARRAY<STRING>
+required ARRAY<FLOAT64>, `values` ARRAY<FLOAT64>
OUTPUTS
ARRAY<STRUCT<key STRING, value FLOAT64>>
-Source | Edit
+Source | Edit
histogram_fill_buckets_dirichlet (UDF)
Interpolate missing histogram buckets with empty buckets so it becomes a valid
estimator for the dirichlet distribution.
@@ -4102,7 +4137,7 @@ histogram_fill_buckets_dirichlet (
profiles N reporting
Then our estimate for final density is:
[{k1: ((P1 + 1/K) / (nreporting+1)), k2: ((P2 + 1/K) /(nreporting+1)), ... }
-Parameters
+Parameters
INPUTS
input_map ARRAY<STRUCT<key STRING, value FLOAT64>>, buckets ARRAY<STRING>, total_users INT64
@@ -4112,7 +4147,7 @@ Parameters
Source | Edit
histogram_buckets_cast_string_array (UDF)
Cast histogram buckets into a string array.
-Parameters
+Parameters
INPUTS
@@ -4122,7 +4157,7 @@ Parameters
Source | Edit
build_seconds_to_hour (UDF)
Returns a custom build id generated from the build seconds of a FOG build.
-Parameters
+Parameters
INPUTS
@@ -4130,51 +4165,16 @@ Parameters
Source | Edit
-histogram_generate_functional_buckets (UDF)
-Generate functional buckets for a histogram. This is specific to Glean.
-See: https://github.com/mozilla/glean/blob/main/glean-core/src/histogram/functional.rs
-A functional bucketing algorithm. The bucket index of a given sample is
-determined with the following function:
-i = $$ \lfloor{n log_{\text{base}}{(x)}}\rfloor $$
-In other words, there are n buckets for each power of base
magnitude.
-Parameters
-INPUTS
-log_base INT64, buckets_per_magnitude INT64, range_max INT64
-
-OUTPUTS
-ARRAY<FLOAT64>DETERMINISTIC
-
-Source | Edit
-histogram_generate_linear_buckets (UDF)
-Generate linear buckets for a histogram.
-Parameters
-INPUTS
-min FLOAT64, max FLOAT64, nBuckets FLOAT64
-
-OUTPUTS
-ARRAY<FLOAT64>DETERMINISTIC
-
-Source | Edit
-
-Create an empty histogram from an array of buckets.
-Parameters
-INPUTS
-
-OUTPUTS
-ARRAY<STRUCT<key STRING, value FLOAT64>>
-
-Source | Edit
-histogram_cast_json (UDF)
-Cast a histogram into a JSON blob.
+fenix_build_to_build_hour (UDF)
+Returns a custom build id generated from the build hour of a Fenix build.
Parameters
INPUTS
-histogram ARRAY<STRUCT<key STRING, value FLOAT64>>
+
OUTPUTS
-STRING DETERMINISTIC
+
-Source | Edit
+Source | Edit
diff --git a/mozfun/glean/index.html b/mozfun/glean/index.html
index d546112f0db..68302a54e5c 100644
--- a/mozfun/glean/index.html
+++ b/mozfun/glean/index.html
@@ -2826,11 +2826,11 @@
-
-
- legacy_compatible_experiments (UDF)
+
+ timespan_nanos (UDF)
-