|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object psychWithJava.Extras
public class Extras
Contains methods for some common tasks and purposes
Constructor Summary | |
---|---|
Extras()
|
Method Summary | |
---|---|
static void |
beep(int hz,
int msecs)
Generates a tone |
static java.awt.image.BufferedImage |
gabor(int mean,
double cpp,
double contrast,
double phase,
int sigma,
double orientation)
Generates a Gabor patch |
static java.io.PrintWriter |
setOutputFile(java.lang.String prefix)
Opens an output file with the specified prefix followed by the date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Extras()
Method Detail |
---|
public static java.awt.image.BufferedImage gabor(int mean, double cpp, double contrast, double phase, int sigma, double orientation) throws PixelOutOfRangeException
mean
- Mean luminance (pixel value 0-255)cpp
- Frequency, cycles per pixelcontrast
- Half the amplitude of the sinusoidal (Michelson Contrast)phase
- Phase shift of the sinusoidalsigma
- Sigma of the Gaussian envelope, affects the diameter of the Gabororientation
- Angle of rotation, 0 is vertical
java.lang.Exception
PixelOutOfRangeException
public static java.io.PrintWriter setOutputFile(java.lang.String prefix) throws java.io.FileNotFoundException
prefix
- For example subject id
java.io.FileNotFoundException
public static void beep(int hz, int msecs) throws javax.sound.sampled.LineUnavailableException
hz
- Affects the pitch of the tonemsecs
- Duration of the tone
javax.sound.sampled.LineUnavailableException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |