|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--Hopfield
Trida implementujici Hopfieldovu sit
Inner Class Summary | |
class |
Hopfield.Graf
V grafu se zobrazuje Hammingova vzdalenost vzoru a vystupu |
class |
Hopfield.MujCanvas
MujCanvas je spolecny predek panelu pro vstup, vystup a naucene vzory |
class |
Hopfield.Vstup
Trida Vstup zobrazuje vstup site, umoznuje editaci pomoci mysi |
class |
Hopfield.Vystup
Trida Vystup zobrazuje vystup site |
class |
Hopfield.Vzory
Trida Vzory zobrazuje naucene vzory, pomoci scrollbaru nebo kliku mysi se prohlizi jednotlive vzory |
Field Summary | |
static int |
MAX_KROKU
Pocet kroku vynasenych do grafu - osa x |
static int |
MULTIPLIKATOR
Nasobici koeficient pro rozmery komponent |
static int |
POCET_NEURONU
Pocet neuronu site - Hopfieldova sit ma tolik neuronu, kolik ma vstupu |
static int |
RASTR_X
Horizontalni rozmer rastru |
static int |
RASTR_Y
Vertikalni rozmer rastru |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Hopfield()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Obsluha udalosti od tlacitek |
int |
hamming()
Pocita Hammingovu vzdalenost mezi vstupem a vystupem |
void |
init()
Inicializace appletu |
static void |
main(java.lang.String[] argv)
Main funkce umoznuje spustit applet mimo prohlizec |
boolean |
nactiVzory(java.lang.String soubor)
Nacteni vzoru z textoveho souboru |
void |
nauc()
Uceni site |
void |
naucVzor()
Nauci sit jeden vzor jenz je momentalne na vstupu |
void |
reset()
Vymaze matici vah, matici m a vystupni vektor |
void |
resetM()
vymaze vektor m |
void |
resetVystup()
Vymaze vystupni vektor |
void |
vybav()
Vybavovani site |
boolean |
vybavKrok()
Vybavovani site - jeden krok |
Methods inherited from class java.applet.Applet |
destroy,
getAppletContext,
getAppletInfo,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
getParameterInfo,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus,
start,
stop |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
addImpl,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
paramString,
preferredSize,
print,
printComponents,
processContainerEvent,
processEvent,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
setLayout,
update,
validate,
validateTree |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
checkImage,
checkImage,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setCursor,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int RASTR_X
public static final int RASTR_Y
public static final int POCET_NEURONU
public static final int MULTIPLIKATOR
public static final int MAX_KROKU
Constructor Detail |
public Hopfield()
Method Detail |
public void init()
public static void main(java.lang.String[] argv)
public void nauc()
public void naucVzor()
public boolean vybavKrok()
public void vybav()
public void resetVystup()
public void resetM()
public void reset()
public boolean nactiVzory(java.lang.String soubor)
public int hamming()
public void actionPerformed(java.awt.event.ActionEvent e)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |