{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "mv_pseries_weighted_sum",
  "description" : "Converts a multivalued expression into a single-valued column by multiplying every element on the input list by its corresponding term in P-Series and computing the sum.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "number",
          "type" : "double",
          "optional" : false,
          "description" : "Multivalue expression."
        },
        {
          "name" : "p",
          "type" : "double",
          "optional" : false,
          "description" : "It is a constant number that represents the *p* parameter in the P-Series. It impacts every element’s contribution to the weighted sum."
        }
      ],
      "variadic" : false,
      "returnType" : "double"
    }
  ],
  "examples" : [
    "ROW a = [70.0, 45.0, 21.0, 21.0, 21.0]\n| EVAL sum = MV_PSERIES_WEIGHTED_SUM(a, 1.5)\n| KEEP sum"
  ],
  "preview" : false,
  "snapshot_only" : false
}
