/*
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

/**
 * The definition of a prediction distribution.
 *
 */
class PredictionDistributionDefinitionDistributionsItem {
  /**
   * Create a PredictionDistributionDefinitionDistributionsItem.
   * @member {number} [scoreThreshold] Score threshold.
   * @member {number} [positives] Number of positives.
   * @member {number} [negatives] Number of negatives.
   * @member {number} [positivesAboveThreshold] Number of positives above
   * threshold.
   * @member {number} [negativesAboveThreshold] Number of negatives above
   * threshold.
   */
  constructor() {
  }

  /**
   * Defines the metadata of PredictionDistributionDefinitionDistributionsItem
   *
   * @returns {object} metadata of PredictionDistributionDefinitionDistributionsItem
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'PredictionDistributionDefinition_distributionsItem',
      type: {
        name: 'Composite',
        className: 'PredictionDistributionDefinitionDistributionsItem',
        modelProperties: {
          scoreThreshold: {
            required: false,
            serializedName: 'scoreThreshold',
            type: {
              name: 'Number'
            }
          },
          positives: {
            required: false,
            serializedName: 'positives',
            type: {
              name: 'Number'
            }
          },
          negatives: {
            required: false,
            serializedName: 'negatives',
            type: {
              name: 'Number'
            }
          },
          positivesAboveThreshold: {
            required: false,
            serializedName: 'positivesAboveThreshold',
            type: {
              name: 'Number'
            }
          },
          negativesAboveThreshold: {
            required: false,
            serializedName: 'negativesAboveThreshold',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = PredictionDistributionDefinitionDistributionsItem;
