Skip to content

Main content

Cyclic Feature Sinecosine Pair Tool

Calculate cyclic feature sinecosine pair from explicit caller-supplied inputs.

Loading tool…

Description

For positive period compute angle=2*pi*(value-origin)/period and return its sine and cosine.

Normalization depends on the supplied center, scale, norm, range, reference distribution, or denominator. A zero spread and a missing denominator need an explicit policy, and clipping differs from fitting a scaler. Evaluating one scalar or derivative term does not estimate every parameter or establish a distributional improvement.

For positive period compute angle=2*pi*(value-origin)/period and return its sine and cosine.

When to use this tool

Use Cyclic Feature Sinecosine Pair when you already have the required normalization parameters and need this local scalar, range, policy, or derivative term.

How to use the tool and how it works

  1. Enter value, period, origin. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read sine, cosine. Use the output convention below.

For positive period compute angle=2*pi*(value-origin)/period and return its sine and cosine.1

Input fieldMeaning and unitsAccepted input
valueSupplied scalar or returned value under the stated operation.Required. Finite number.
periodPeriodRequired. Finite number; strictly above 0.
originOriginRequired. Finite number.
Output fieldInterpretationReturned shape
sineSineRequired. Finite number.
cosineCosineRequired. Finite number.
json
{
  "input": {
    "value": 6,
    "period": 24,
    "origin": 0
  },
  "output": {
    "sine": 1,
    "cosine": 6.123233995736766e-17
  }
}

Limitations and assumptions

  • Value, origin, and period need one cyclic coordinate unit. The phase is not reduced before arithmetic, so extreme values can lose accuracy or cause range errors; the pair does not infer a period or recover a unique unwrapped value.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Fit or verify the intended scaler parameters and statistical model separately. Check units, zero policies, missingness, clipping, inverse conventions, and whether supplied norms or denominators belong to the same data.

References

  1. Calculation and input contract: normalize/cyclic-feature-sinecosine-pair — tool.io

Similar or alternative tools

  • Lens Axis Wrapped Angle

    Wrap an explicitly supplied unoriented research axis to a half-turn coordinate; no prescription is generated.

  • Optical Axis Reference Gap

    For suppliedReferenceGap within zero through 90 degrees reduce secondAxisDegrees-firstAxisDegrees modulo 180 and return unorientedGap=min(wrapped,180-wrapped) and residual=unorientedGap-suppliedReferenceGap.