# Adaptive-additive algorithm

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Adaptive-additive_algorithm
> Markdown URL: https://mediated.wiki/source/Adaptive-additive_algorithm.md
> Source: https://en.wikipedia.org/wiki/Adaptive-additive_algorithm
> Source revision: 1300231981
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

In the studies of [Fourier optics](/source/Fourier_optics), [sound synthesis](/source/sound_synthesis), [stellar](/source/Stellar_astronomy) [interferometry](/source/interferometry), [optical tweezers](/source/optical_tweezers), and diffractive optical elements (DOEs) it is often important to know the [spatial frequency](/source/spatial_frequency) phase of an observed wave source. In order to reconstruct this [phase](/source/phase_(waves)) the '''Adaptive-Additive Algorithm''' (or '''AA algorithm'''), which derives from a group of adaptive (input-output) algorithms, can be used. The AA algorithm is an [iterative](/source/iterative) [algorithm](/source/algorithm) that utilizes the [Fourier Transform](/source/Fourier_Transform) to calculate an unknown part of a propagating wave, normally the [spatial frequency](/source/spatial_frequency) [phase](/source/phase_(waves)) (k space). This can be done when given the phase’s known counterparts, usually an observed [amplitude](/source/amplitude) ([position space](/source/Position_and_momentum_spaces)) and an assumed starting [amplitude](/source/amplitude) (k space). To find the correct [phase](/source/phase_(waves)) the [algorithm](/source/algorithm) uses error conversion, or the error between the desired and the theoretical [intensities](/source/intensity_(physics)).

==The algorithm==

===History===

The adaptive-additive algorithm was originally created to reconstruct the [spatial frequency](/source/spatial_frequency) [phase](/source/phase_(waves)) of light intensity in the study of stellar [interferometry](/source/interferometry). Since then, the AA algorithm has been adapted to work in the fields of [Fourier Optics](/source/Fourier_Optics) by Soifer and Dr. Hill, [soft matter](/source/soft_matter) and [optical tweezers](/source/optical_tweezers) by Dr. Grier, and [sound synthesis](/source/sound_synthesis) by Röbel.

===Algorithm===
# Define input amplitude and random phase
# Forward Fourier Transform
# Separate transformed amplitude and phase
# Compare transformed amplitude/intensity to desired output amplitude/intensity
# Check convergence conditions
# Mix transformed amplitude with desired output amplitude and combine with transformed phase
# Inverse Fourier Transform
# Separate new amplitude and new phase
# Combine new phase with original input amplitude
# Loop back to Forward Fourier Transform

===Example===

For the problem of reconstructing the [spatial frequency](/source/spatial_frequency) phase (''k''-space) for a desired [intensity](/source/intensity_(physics)) in the image plane (''x''-space). Assume the [amplitude](/source/amplitude) and the starting phase of the wave in ''k''-space is <math>A_0</math> and <math>\phi_n^{k}</math> respectively. [Fourier transform](/source/Fourier_transform) the wave in ''k''-space to ''x'' space.

: <math>A_0e^{i\phi_n^{k}} \xrightarrow{FFT} A_n^fe^{i\phi_n^{f}}</math>

Then compare the transformed [intensity](/source/intensity_(physics)) <math>I_n^f</math> with the desired intensity <math>I_0^f</math>, where

: <math>
I_n^f = \left(A_n^f\right)^2,
</math>

: <math>
\varepsilon = \sqrt{\left(I_n^f\right)^2 - \left(I_0\right)^2}.
</math>

Check <math>\varepsilon</math> against the convergence requirements. If the requirements are not met then mix the transformed [amplitude](/source/amplitude) <math>A_n^f</math> with desired amplitude <math>A^f</math>.

: <math>\bar{A}^f_n = \left[a A^f + (1-a) A_n^f\right],</math>

where ''a'' is mixing ratio and

: <math>A^f = \sqrt{I_0}</math>.

Note that ''a'' is a percentage, defined on the interval 0 ≤ ''a'' ≤ 1.

Combine mixed amplitude with the ''x''-space phase and [inverse Fourier transform](/source/inverse_Fourier_transform).

: <math>\bar{A}^{f}e^{i\phi_n^f} \xrightarrow{iFFT} \bar{A}_n^ke^{i\phi_n^k}.</math>

Separate <math>\bar{A}_n^k</math> and <math>\phi^k_n</math> and combine <math>A_0</math> with <math>\phi^k_n</math>. Increase loop by one <math> n \to n + 1</math> and repeat.

====Limits====
* If <math>a = 1</math> then the AA algorithm becomes the [Gerchberg–Saxton algorithm](/source/Gerchberg%E2%80%93Saxton_algorithm).
* If <math>a = 0</math> then <math>\bar{A}^k_n = A_0</math>.

==See also==

* [Gerchberg–Saxton algorithm](/source/Gerchberg%E2%80%93Saxton_algorithm)
* [Fourier optics](/source/Fourier_optics)
* [Holography](/source/Holography)
* [Interferometry](/source/Interferometry)
* [Sound Synthesis](/source/Synthesizer)

==References==

* {{citation
| last1=Dufresne
| first1=Eric
| last2=Grier
| first2=David G
| last3=Spalding
| title=Computer-Generated Holographic Optical Tweezer Arrays
| journal=Review of Scientific Instruments
| volume=72 | issue=3
| pages=1810
| doi=10.1063/1.1344176 
|date=December 2000| arxiv=cond-mat/0008414| bibcode=2001RScI...72.1810D| s2cid=14064547
}}.
* {{citation
| last=Grier
| first=David G
| title=Adaptive-Additive Algorithm
| date=October 10, 2000
| url=http://www.physics.nyu.edu/~dg86/cgh2b/node6.html}}.
* {{citation
| last=Röbel
| first=Axel
| title=Adaptive Additive Modeling With Continuous Parameter Trajectories
| journal=IEEE Transactions on Audio, Speech, and Language Processing
| volume=14
| issue=4
| pages=1440–1453
| doi=10.1109/TSA.2005.858529
| year=2006
| s2cid=73476
}}.
* {{citation
| last=Röbel
| first=Axel
| title=Adaptive-Additive Synthesis of Sound
| place= ICMC 1999
| citeseerx=10.1.1.27.7602
}}
* {{Citation
| last1=Soifer
| first1=V. Kotlyar
| last2=Doskolovich
| first2=L.
| title=Iterative Methods for Diffractive Optical Elements Computation
| year=1997
| publisher=Taylor & Francis
| location=Bristol, PA
| isbn=978-0-7484-0634-0}}

==External links==
* [http://physics.nyu.edu/grierlab/cgh2b/node6.html David Grier's Lab] Presentation on optical tweezers and fabrication of AA algorithm.
* [https://web.archive.org/web/20070609193556/http://www-ccrma.stanford.edu/~roebel/addsyn/index.html Adaptive Additive Synthesis for Non Stationary Sound] Dr. Axel Röbel.
* [http://hillslab.umd.edu/ Hill Labs] ''University of Maryland College Park''.]

{{DEFAULTSORT:Adaptive-Additive Algorithm}}
Category:Digital signal processing
Category:Physical optics

---
Adapted from the Wikipedia article [Adaptive-additive algorithm](https://en.wikipedia.org/wiki/Adaptive-additive_algorithm) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Adaptive-additive_algorithm?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
