```java.lang.Object java.lang.Thread jwo.landserf.process.LSThread jwo.landserf.process.FracSurfaceThread
```
All Implemented Interfaces:
JWInterruptionListener, Runnable

Calculates a fractal surface using spectral synthesis. Algorithm from Peitgen and Saupe (1988).

Version:
2.2, 5th December, 2004.
Author:
Jo Wood

 Field Summary

 Fields inherited from class java.lang.Thread `MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY`

 Constructor Summary `FracSurfaceThread(GISFrame gisFrame)`           Fills the current primary raster with a fractal surface with default fractal dimension of 2.1, mean of 500, and standard deviation of 100. ```FracSurfaceThread(GISFrame gisFrame, float fracDim)```           Fills the current primary raster with a fractal surface with given fractal dimension and default mean of 500, and standard deviation of 100. ```FracSurfaceThread(GISFrame gisFrame, float fracDim, float mean, float stdev)```           Fills the current primary raster with a fractal surface with given fractal dimension, mean, and standard deviation. ```FracSurfaceThread(GISFrame gisFrame, float fracDim, float mean, float stdev, long seed)```           Fills the current primary raster with a fractal surface with given fractal dimension, mean, standard deviation and random seed.

 Method Summary ` void` `doProcessing()`           Creates the raster surface and places the contents into the currently selected primary raster map. ` boolean` ```spectralSynthesis(float[] realNum, float[] imagNum, int nn, float h)```           Creates a 2-d fractal surface via spectral synthesis.

 Methods inherited from class jwo.landserf.process.LSThread `checkStoppedThread, interruptionRequested, resetTimer, run, setErrorMessage, setMessage`

 Methods inherited from class java.lang.Thread `activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield`

 Methods inherited from class java.lang.Object `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

 Constructor Detail

`public FracSurfaceThread(GISFrame gisFrame)`
Fills the current primary raster with a fractal surface with default fractal dimension of 2.1, mean of 500, and standard deviation of 100.

Parameters:
`gisFrame` - Frame in which to report results.

```public FracSurfaceThread(GISFrame gisFrame,
float fracDim)```
Fills the current primary raster with a fractal surface with given fractal dimension and default mean of 500, and standard deviation of 100.

Parameters:
`gisFrame` - Frame in which to report results.
`fracDim` - Fractal dimension of surface.

```public FracSurfaceThread(GISFrame gisFrame,
float fracDim,
float mean,
float stdev)```
Fills the current primary raster with a fractal surface with given fractal dimension, mean, and standard deviation.

Parameters:
`gisFrame` - Frame in which to report results.
`fracDim` - Fractal dimension of surface.
`mean` - Mean of surface values.
`stdev` - Standard deviation of surface values.

```public FracSurfaceThread(GISFrame gisFrame,
float fracDim,
float mean,
float stdev,
long seed)```
Fills the current primary raster with a fractal surface with given fractal dimension, mean, standard deviation and random seed.

Parameters:
`gisFrame` - Frame in which to report results.
`fracDim` - Fractal dimension of surface.
`mean` - Mean of surface values.
`stdev` - Standard deviation of surface values.
 Method Detail

### doProcessing

`public void doProcessing()`
Creates the raster surface and places the contents into the currently selected primary raster map. Note that unlike some of the classes in the `jwo.landser.process` package, this class does not create a new raster map, but instead 'fills' the existing primary raster stored in the `GISFrame` provided to the constructor. This is to make it easier to allow a fractal surface to be created by default in a new GISFrame. To retrieve the fractal surface, call `GISFrame.getRaster1()` after this process has completed.

Specified by:
`doProcessing` in class `LSThread`

### spectralSynthesis

```public boolean spectralSynthesis(float[] realNum,
float[] imagNum,
int nn,
float h)```
Creates a 2-d fractal surface via spectral synthesis. Algorithm is based on the one by D. Sauper (1988), p.108.

Parameters:
`realNum` - Array of real components of coefficients and fractal surface.
`imagNum` - Array of imaginary components of coefficients and fractal surface.
`nn` - Size of array along one dimensions (2^n).
`h` - Relates to fractal dimension (D) as D = 3 - h.
Returns:
True if surface created sucessfully.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6219194,"math_prob":0.7439563,"size":3836,"snap":"2023-40-2023-50","text_gpt3_token_len":929,"char_repetition_ratio":0.14509395,"word_repetition_ratio":0.35797665,"special_character_ratio":0.20255475,"punctuation_ratio":0.20620155,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96597487,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-28T21:18:14Z\",\"WARC-Record-ID\":\"<urn:uuid:4b7e6fd3-4f81-49ce-bea1-8d3787561ac6>\",\"Content-Length\":\"27228\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:337fef0c-005d-430d-a868-dc20a2e726dc>\",\"WARC-Concurrent-To\":\"<urn:uuid:1f123cf1-d367-40f0-81c7-9d0b02546be9>\",\"WARC-IP-Address\":\"138.40.78.88\",\"WARC-Target-URI\":\"https://www.staff.city.ac.uk/~jwo/landserf/landserf220/doc/programming/api/jwo/landserf/process/FracSurfaceThread.html\",\"WARC-Payload-Digest\":\"sha1:WTYKT3HYVBP46TFB4Z6TVXHUVUWTED62\",\"WARC-Block-Digest\":\"sha1:F2A7G6Q7EAVZEFQSTBZAWZR6DHVTLFHV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233510454.60_warc_CC-MAIN-20230928194838-20230928224838-00821.warc.gz\"}"}