Interface VariantResult.Builder

  • Method Details

    • variantName

      VariantResult.Builder variantName(String variantName)

      The name of the treatment variant.

      Parameters:
      variantName - The name of the treatment variant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sampleSize

      VariantResult.Builder sampleSize(Integer sampleSize)

      The number of sessions evaluated for this variant.

      Parameters:
      sampleSize - The number of sessions evaluated for this variant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • mean

      The mean evaluation score for this variant.

      Parameters:
      mean - The mean evaluation score for this variant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • absoluteChange

      VariantResult.Builder absoluteChange(Double absoluteChange)

      The absolute change in mean score compared to the control variant.

      Parameters:
      absoluteChange - The absolute change in mean score compared to the control variant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • percentChange

      VariantResult.Builder percentChange(Double percentChange)

      The percentage change in mean score compared to the control variant.

      Parameters:
      percentChange - The percentage change in mean score compared to the control variant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pValue

      VariantResult.Builder pValue(Double pValue)

      The p-value indicating the statistical significance of the observed difference.

      Parameters:
      pValue - The p-value indicating the statistical significance of the observed difference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidenceInterval

      VariantResult.Builder confidenceInterval(ConfidenceInterval confidenceInterval)

      The confidence interval for the observed difference.

      Parameters:
      confidenceInterval - The confidence interval for the observed difference.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • confidenceInterval

      default VariantResult.Builder confidenceInterval(Consumer<ConfidenceInterval.Builder> confidenceInterval)

      The confidence interval for the observed difference.

      This is a convenience method that creates an instance of the ConfidenceInterval.Builder avoiding the need to create one manually via ConfidenceInterval.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to confidenceInterval(ConfidenceInterval).

      Parameters:
      confidenceInterval - a consumer that will call methods on ConfidenceInterval.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • isSignificant

      VariantResult.Builder isSignificant(Boolean isSignificant)

      Whether the observed difference is statistically significant.

      Parameters:
      isSignificant - Whether the observed difference is statistically significant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.