> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# prep_sampling_fft class

**Namespace:** [Ans.DataProcessing.operators.mapping](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/mapping)

## Summary

Prepare time sampling optimum for FFT computation and expected frequencies in output.

available inputs: `time_freq_support` (TimeFreqSupport), `cutoff_frequency` (double) (optional), `number_sampling_point` (Int32) (optional)

available outputs: `time_tfs_sampled` (TimeFreqSupport), `freq_tfs_fft` (TimeFreqSupport)

## Example

```python theme={null}
op = prep_sampling_fft()

op = prep_sampling_fft(time_freq_support=my_time_freq_support,cutoff_frequency=my_cutoff_frequency,number_sampling_point=my_number_sampling_point)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.mapping` |
| Assembly | `Ans_Dpf_Math_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### time\_freq\_support

Initial time domain TimeFreqSupport.

**Type:** *LinkableInput*

### cutoff\_frequency

Cutoff Frequency. In this case, number of points is calculated computing (time\_range \* cutoff\_freq \* 2) and taking the next power of 2 (optimum for fft calculation).

**Type:** *LinkableInput*

### number\_sampling\_point

For number of sampling point (calculation with cutoff\_frequency is ignored).

**Type:** *LinkableInput*

## Outputs

### time\_tfs\_sampled

Optimum sampled time domain TimeFreqSupport.

**Type:** *LinkableOutput*

### freq\_tfs\_fft

Frequency domain TimeFreqSupport expected in output of FFT.

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
prep_sampling_fft()
```

#### Constructor

```python theme={null}
prep_sampling_fft(time_freq_support, cutoff_frequency, number_sampling_point, config)
```

**Parameters:**

* `time_freq_support` (*object*)
* `cutoff_frequency` (*object*)
* `number_sampling_point` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
prep_sampling_fft(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
