%YAML 1.1
---
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01"
id: "http://stsci.edu/schemas/asdf/transform/broken_power_law1d-1.2.0"
title: >
  One dimensional power law model with a break.

description: >
  One dimensional power law model with a break.

examples:
  -
    - $f(x) = A (10.0 / 5.0) ^ {-2.0}$ for x < 5.0 and $f(x) = A (10.0 / 5.0) ^ {-3.0}$ for x > 5.0
    - |
      !transform/broken_power_law1d-1.2.0 {alpha_1: 2.0, alpha_2: 3.0, amplitude: 10.0, x_break: 5.0}

allOf:
  - $ref: "transform-1.4.0"
  - type: object
    properties:
      amplitude:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Model amplitude at the break point.
      x_break:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Break point.
      alpha_1:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Power law index for x < x_break.
      alpha_2:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Power law index for x > x_break.

    required: ['amplitude', 'x_break', 'alpha_1', 'alpha_2']
...
