113 if (!strcmp (type,
"lin") || !strcmp (type,
"log")) {
117 if (!strcmp (type,
"lin")) {
118 swp =
new linsweep (n);
119 ((linsweep *) swp)->create (start, stop, points);
121 else if (!strcmp (type,
"log")) {
122 swp =
new logsweep (n);
123 ((logsweep *) swp)->create (start, stop, points);
128 else if (!strcmp (type,
"list")) {
130 int points = values->getSize ();
131 swp =
new lstsweep (n);
132 ((lstsweep *) swp)->create (points);
133 for (
int i = 0;
i < values->getSize ();
i++)
134 swp->set (
i,
real (values->get (
i)));
138 else if (!strcmp (type,
"const")) {
140 swp =
new consweep (n);
141 ((consweep *) swp)->create (1);
145 swp->setParent (
this);
153 if ((d =
data->findVariable (n)) == NULL) {
156 d->setDependencies (
new strlist ());
157 d->getDependencies()->add (f->getName ());
160 data->addVariable (d);
std::complex< nr_double_t > nr_complex_t
matrix real(matrix a)
Real part matrix.
void saveVariable(const char *, nr_complex_t, qucs::vector *)
Save variable into analysis dataset.
void delAnalysis(analysis *)
nr_double_t getPropertyDouble(const char *)
analysis()
Constructor (Unnamed)
int getPropertyInteger(const char *)
vector * getPropertyVector(const char *)
The analysis class header file.
void addAnalysis(analysis *)
class for performing circuit analyses.
sweep * createSweep(const char *)
create a named sweep object
char * getPropertyString(const char *)
ptrlist< analysis > * actions