⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 swarm.analysis.functiongraph.protocol.html

📁 set for Swarm2.1是圣菲研究院的开发人员对Swarm的特性及其使用描述的最为完备的指南性文档。从这里可以获得最细致的平台说明。
💻 HTML
字号:
<HTML><HEAD><TITLE>FunctionGraph</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Analysis Library"HREF="swarm.analysis.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="Entropy"HREF="swarm.analysis.entropy.protocol.html"><LINKREL="NEXT"TITLE="General"HREF="swarm.analysis.generic.module.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.analysis.entropy.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference IX. Analysis Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.analysis.generic.module.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.PROTOCOL">FunctionGraph</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN22396"></A><H2>Name</H2>FunctionGraph&nbsp;--&nbsp; A widget for drawing a function over a range of one variable.</DIV><DIVCLASS="REFSECT1"><ANAME="AEN22399"></A><H2>Description</H2><P> The FunctionGraph class is like the ActiveGraph except that instead of plotting values versus time it plots them versus some specified range on the x-axis.  Also, instead of plotting one value on each step (as you would with time), FunctionGraph does a complete sampling whenever the `graph' method is called.  That is, it graphs f(x) = y for all x in [minX, maxX] where x = minX + n * stepS ize.</P><P> The user specifies stuff like minX, maxX, the number of steps between minX and maxX to sample at and a method selector that is a wrapper for the equation being graphed. The method selector must be in a particular format: (BOOL) f: (double *) x : (double *) y If the method returns FALSE then that x value is skipped, otherwise it is assummed that y = f(x) and that value is plotted.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN22403"></A><H2>Protocols adopted by FunctionGraph</H2><P> <AHREF="swarm.objectbase.swarmobject.protocol.html">SwarmObject</A> <AHREF="swarm.defobj.creatable.protocol.html">CREATABLE</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN22408"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN22410"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M51"></A><P></P>+ <BCLASS="FUNCPROTOTYPE">createBegin:</B> (id &lt;Zone&gt;)<VARCLASS="PDPARAM">aZone</VAR> <BR><P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M228"></A><P></P>- <BCLASS="FUNCPROTOTYPE">createEnd</B><BR><P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M748"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setElement:</B> (id &lt;GraphElement&gt;)<VARCLASS="PDPARAM">graphElement</VAR> <BR> Set the GraphElement to use for plotting.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M724"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setDataFeed:</B> <VARCLASS="PDPARAM">feed</VAR> <BR> Set the target to send the function method.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M764"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setFunctionSelector:</B> (SEL)<VARCLASS="PDPARAM">aSel</VAR> <BR> Set the function method.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M675"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setArithmeticWarn:</B> (BOOL)<VARCLASS="PDPARAM">state</VAR> <BR> If true, raise a warning if the function method failed to compute a value.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M905"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setXMin:</B> (double)<VARCLASS="PDPARAM">minx</VAR> <BCLASS="FUNCPROTOTYPE">Max:</B> (double)<VARCLASS="PDPARAM">maxx</VAR> <BCLASS="FUNCPROTOTYPE">Resolution:</B> (unsigned)<VARCLASS="PDPARAM">steps</VAR> <BR> Set the range and resolution of X values at which to compute values.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M906"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setXMin:</B> (double)<VARCLASS="PDPARAM">minx</VAR> <BCLASS="FUNCPROTOTYPE">Max:</B> (double)<VARCLASS="PDPARAM">maxx</VAR> <BCLASS="FUNCPROTOTYPE">StepSize:</B> (double)<VARCLASS="PDPARAM">size</VAR> <BR> Set the range and step size of X values at which to compute values.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PC.M847"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setResetFrequency:</B> (unsigned)<VARCLASS="PDPARAM">freq</VAR> <BR> Set the frequency at which to clear the graph element.<P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN22501"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.ANALYSIS.FUNCTIONGRAPH.METHOD.PU.M538"></A><P></P>- <BCLASS="FUNCPROTOTYPE">graph</B><BR> Draw the graph with the current contents of the graph element.<P></P></DIV></LI></UL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.analysis.entropy.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.analysis.generic.module.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Entropy</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.analysis.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">General</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -