|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfi.jyu.mit.graphics.BasicShape
fi.jyu.mit.graphics.FunctionMapRR
public class FunctionMapRR
Luokka R->R funktion kuvaajan piirtämiseksi.
| Constructor Summary | |
|---|---|
FunctionMapRR(FunctionRR f,
double xmin,
double xmax)
Luo uuden R->R funktion kuvaajan xy-tasoon |
|
FunctionMapRR(FunctionRR f,
double xmin,
double xmax,
double z)
Luo uuden R->R funktion kuvaajan |
|
| Method Summary | |
|---|---|
protected void |
drawShape(Graphics g,
Matrix a)
Pirtää kuvion annetulla Graphics-oliolla ja muunnosmatriisilla |
static double |
funMax(FunctionRR f,
double x1,
double x2,
double dx)
Etsii funktion f maksimin välillä [x1,x2] askeltaen dx:n kokoisilla askelilla. |
static double |
funMin(FunctionRR f,
double x1,
double x2,
double dx)
Etsii funktion f minimin välillä [x1,x2] askeltaen dx:n kokoisilla askelilla. |
| Methods inherited from class fi.jyu.mit.graphics.BasicShape |
|---|
changeTransform, draw, getColor, getPoint, getRotator, getRotator, getTransform, getTransform, initGraphics, move, redraw, rotate, scale, setColor, setColor, setParent, setRotator, setTransform, transform |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FunctionMapRR(FunctionRR f,
double xmin,
double xmax,
double z)
f - piirrettävä funktioxmin - x minimixmax - x maksimiz - z-koordinaatin arvo
public FunctionMapRR(FunctionRR f,
double xmin,
double xmax)
f - piirrettävä funktioxmin - x minimixmax - x maksimi| Method Detail |
|---|
protected void drawShape(Graphics g,
Matrix a)
BasicShape
drawShape in class BasicShapeg - Graphics-olioa - muunnosmatriisi
public static double funMin(FunctionRR f,
double x1,
double x2,
double dx)
f - funktio jonka minimiä etsitäänx1 - aloituspistex2 - lopetuspistedx - askellusväli
funMin(SinFun.sin, 0.0,1.0,0.1) ~~~ 0.0; funMin(SinFun.sin, 0.0,2*Math.PI,0.001) ~~~ -1.0;
public static double funMax(FunctionRR f,
double x1,
double x2,
double dx)
f - funktio jonka maskimia etsitäänx1 - aloituspistex2 - lopetuspistedx - askellusväli
funMax(SinFun.sin,-1.0,0.0,0.1) ~~~ 0.0; funMax(SinFun.sin, 0.0,Math.PI,0.01) ~~~ 1.0;
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||