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

description: >
  One dimensional smoothly broken power law model.

examples:
  -
    - $$f(x) = 10*(\frac{x}{5.0})^{-2.0}\{\frac{1}{2}[1+(\frac{x}{5.0})^{1/0.5}]\}^{(2.0- 3.0)0.5}$$
    - asdf-standard-1.6.0
    - |
      !transform/smoothly_broken_power_law1d-1.2.0 {alpha_1: 2.0, alpha_2: 2.0, amplitude: 10.0, delta: 0.5, 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.
      delta:
        anyOf:
          - tag: "tag:stsci.edu:asdf/unit/quantity-1.*"
          - type: number
        description: Smoothness parameter.

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