1. Go to this page and download the library: Download webit/fft library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
webit / fft example snippets
use Webit\Math\Fft\FftCalculatorRadix2;
use Webit\Math\Fft\Dimension;
use Webit\Math\ComplexNumber\ComplexArray;
// FFT
$calculator = new FftCalculatorRadix2();
$signal = ComplexArray::create(array(123, 456, 789, 1111));
$fft = $calculator->calculateFft($signal, Dimension::create(4)); // ComplexArray
use Webit\Math\Fft\IFftCalculator;
use Webit\Math\Fft\FftCalculatorRadix2;
use Webit\Math\Fft\Dimension;
use Webit\Math\ComplexNumber\ComplexArray;
// FFT
$calculator = new IFftCalculator(new FftCalculatorRadix2());
$signal = ComplexArray::create(array(123, 456, 789, 1111));
$ifft = $calculator->calculateIFft($signal, Dimension::create(4)); // ComplexArray
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.