# Wave Directional Spread Calculator AI Agent Connect

> Wave Directional Spread Calculator provides the mathematical tools needed to process wave energy distribution. Your AI client can use this MCP to calculate mean wave direction, spreading width, and higher-order directional moments using circular statistics. It handles the heavy lifting of angular normalization and energy concentration analysis for oceanographic datasets.

## Overview
- **Category:** science
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_sh9MdLbmfYTIptt86VnDidnkbQtnMOCDxektpI2F/ai-agent-connect
- **Tags:** waves, statistics, oceanography, spectral-analysis, circular-statistics

## Description

You can use this MCP to perform complex oceanographic analysis without manually calculating circular statistics. It's built to handle wave energy distribution across different angles, giving you a clear picture of how waves are moving. Instead of wrestling with angular ranges, you can have your agent compute the mean wave direction or spreading width instantly. If you need to dig deeper into spectral analysis, the tools provide higher-order moments and energy concentration summaries within specific angular windows. It also handles the tedious work of normalizing raw angular values into your preferred ranges, like 0 to 360 or -180 to 180. This makes it easy to feed raw sensor data into your AI client and get back actionable statistical summaries.

## Tools

### calculate_directional_moments
This tool computes specific higher-order directional moments for deep spectral analysis.

### calculate_directional_stats
Use this to get a primary statistical summary of wave directionality, including mean direction and spreading width.

### get_angular_distribution_summary
This tool identifies how much wave energy is concentrated within specific angular bins or ranges.

### normalize_wave_direction
This tool standardizes raw angular values into preferred ranges like 0 to 360 or -180 to 180.

## Prompt Examples

**Prompt:** 
```
Calculate the directional statistics for directions [10, 20, 350], energies [5, 10, 5], and frequencies [0.1, 0.12, 0.09].
```

**Response:** 
```
The mean direction is 0.0 degrees, the spreading width is 15.4 degrees, and the principal direction is 20.0 degrees.
```

**Prompt:** 
```
What is the energy contained within 10 degrees of a 45 degree target angle, given directions [40, 45, 50] and energies [2, 5, 3]?
```

**Response:** 
```
The contained energy is 10.0, which represents 100% of the total energy in the provided dataset.
```

**Prompt:** 
```
Normalize the angle 270 degrees to the minus_180_to_180 range.
```

**Response:** 
```
-90.0
```

## Capabilities

### Circular Statistics
Your agent uses circular math to process wave energy distribution across angular ranges.

### Directional Summaries
Your agent calculates mean direction and spreading width from spectral data.

### Energy Concentration Analysis
Your client identifies how much energy sits within specific angular windows.

### Angular Normalization
The MCP converts raw angles into standardized formats like 0 to 360.

### Higher-Order Moments
The tool provides detailed spectral analysis through directional moments.

## Use Cases

### Wave Direction Analysis
Calculate the mean direction and spreading width of a wave field from sensor data.

### Energy Distribution Mapping
Determine how much wave energy is concentrated within a specific angular window.

### Data Standardization
Convert raw angular measurements into a standard 0 to 360 degree format.

### Advanced Spectral Modeling
Use higher-order moments to perform detailed analysis of wave spectra.

## Benefits

- Removes the need for manual circular statistics calculations.
- Standardizes angular data into consistent ranges automatically.
- Provides higher-order moments for granular spectral analysis.
- Converts raw energy distributions into clear statistical summaries.

## How It Works

Connecting this MCP to your AI client gives you immediate access to oceanographic math tools.

1. Connect your preferred client like Claude or Cursor to Vinkius.
2. Provide your wave direction, energy, and frequency data to your agent.
3. Your agent calls the necessary tool to process the circular statistics.
4. You receive the calculated directional stats or normalized angles in your chat.

## Frequently Asked Questions

**What kind of statistics does this MCP provide?**
It provides mean wave direction, spreading width, principal direction, and higher-order directional moments.

**Can I normalize angles to different ranges?**
Yes, the normalize_wave_direction tool can adjust raw values into ranges like 0 to 360 or -180 to 180.

**Does this MCP work with Claude?**
Yes, it works with any MCP-compatible client, including Claude, Cursor, and Windsurf.

**How does it handle wave energy?**
It uses the get_angular_distribution_summary tool to show how energy is concentrated in specific angular bins.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you, so it is ready to use immediately after connection.

**How does this tool handle the circular nature of wave directions?**
The tool uses circular statistics, applying trigonometric functions to sine and cosine components to ensure that the transition between 359° and 0° is handled correctly.

**What is the difference between the mean direction and the principal direction?**
The mean direction is the central tendency of the wave direction weighted by energy, whereas the principal direction is the specific direction with the maximum energy density.

**Can I normalize my results to a specific range?**
Yes, you can use `normalize_wave_direction` to adjust any raw angular value into either a 0 to 360 degree range or a -180 to 180 degree range.
