

# analyzer

`core.analyzer`

Performance and data analysis module.

## Classes

| Name | Description |
|----|----|
| [PerformanceAnalyzer](#nova_fde.core.analyzer.PerformanceAnalyzer) | TEP processing performance analyzer. |

### PerformanceAnalyzer

``` python
core.analyzer.PerformanceAnalyzer(self, output_dir, console=None)
```

TEP processing performance analyzer.

#### Methods

| Name | Description |
|----|----|
| [compare_files](#nova_fde.core.analyzer.PerformanceAnalyzer.compare_files) | Compare current data with previous version. |
| [generate_report](#nova_fde.core.analyzer.PerformanceAnalyzer.generate_report) | Generate a formatted performance report. |
| [profile_data](#nova_fde.core.analyzer.PerformanceAnalyzer.profile_data) | Profile data and print summary. |

##### compare_files

``` python
core.analyzer.PerformanceAnalyzer.compare_files(
    current_df,
    name_pattern,
    output_dir,
)
```

Compare current data with previous version.

###### Parameters

| Name         | Type         | Description                          | Default    |
|--------------|--------------|--------------------------------------|------------|
| current_df   | pd.DataFrame | Current DataFrame                    | *required* |
| name_pattern | str          | Base file name pattern to search for | *required* |
| output_dir   | Path         | Directory to search for files        | *required* |

##### generate_report

``` python
core.analyzer.PerformanceAnalyzer.generate_report(metrics)
```

Generate a formatted performance report.

###### Parameters

| Name    | Type | Description                               | Default    |
|---------|------|-------------------------------------------|------------|
| metrics | Dict | Dictionary containing performance metrics | *required* |

##### profile_data

``` python
core.analyzer.PerformanceAnalyzer.profile_data(df)
```

Profile data and print summary.

###### Parameters

| Name | Type         | Description          | Default    |
|------|--------------|----------------------|------------|
| df   | pd.DataFrame | DataFrame to profile | *required* |
