jass.generators
Class RandomModalModel

java.lang.Object
  extended by jass.generators.ModalModel
      extended by jass.generators.RandomModalModel

public class RandomModalModel
extends ModalModel

Modal model, with random modes.

Author:
Kees van den Doel (kvdoel@cs.ubc.ca)

Field Summary
 
Fields inherited from class jass.generators.ModalModel
a, ascale, d, dscale, f, fscale, nf, nfUsed, np
 
Constructor Summary
RandomModalModel(int nf, int np, float fmin, float fmax, float mmcmin, float mmcmax, float amin, float amax)
          Constructor.
 
Method Summary
 
Methods inherited from class jass.generators.ModalModel
allocate, readModes, readModes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomModalModel

public RandomModalModel(int nf,
                        int np,
                        float fmin,
                        float fmax,
                        float mmcmin,
                        float mmcmax,
                        float amin,
                        float amax)
Constructor. Create modes uniformly for range chosen. Material model constant mmc determines damping by d = mmc * f

Parameters:
nf - number of modes.
np - number of locations.
fmin - minimum frequeny
fmax - maximum frequeny
mmcmin - minimum material const.
mmcmax - maximum material const.
ammin - minimum gain
amax - maximum gain