|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.SP.Comm.Encode
public final class Encode
This class contains some methods to perform the encoding techniques.
| Constructor Summary | |
|---|---|
Encode()
|
|
| Method Summary | |
|---|---|
static void |
AM(double na,
double fc)
Plot the result of modulating by Amplitude-Modulation technique. |
static vector |
AM(double na,
double fc,
vector x,
vector t,
boolean plot)
Generate the modulating signal by Amplitude-Modulation technique. |
static bitStream |
AMIData(int[] signal)
Recover digital data from bipolarAMI signal. |
static vector |
ASK(bitStream bits,
boolean plot)
Plot the result of modulating by Amplitude-shift keying technique. |
static int[] |
bipolarAMI(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using bipolarAMI technique. |
static int[] |
differentialManchester(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using differentialManchester technique. |
static bitStream |
differentialManchesterData(int[] signal)
Recover digital data from differentialManchester signal. |
static bitStream |
directSeq(bitStream in,
bitStream bseq)
Generate a direct sequence signal. |
static vector |
FSK(bitStream bits,
boolean plot)
Plot the result of modulating by Frequency-shift keying technique. |
static bitStream |
inverseDirectSeq(bitStream s,
bitStream bseq)
Recover data from a direct sequence signal. |
static int[] |
Manchester(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using Manchester technique. |
static bitStream |
ManchesterData(int[] signal)
Recover digital data from Manchester signal. |
static int[] |
NRZI(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using NRZI technique. |
static bitStream |
NRZIData(int[] signal)
Recover digital data from NRZI signal. |
static int[] |
NRZL(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using NRZL technique. |
static bitStream |
NRZLData(int[] signal)
Recover digital data from NRZL signal. |
static void |
PM(double Ac,
double np,
double fc)
Plot the result of modulating by Phase-Modulation technique. |
static vector |
PM(double Ac,
double np,
double fc,
vector x,
vector t,
boolean plot)
Genarate the modulating signal by Phase-Modulation technique. |
static int[] |
pseudoternary(bitStream bitstr,
boolean plot)
Generate a signal from a bitStream data using pseudoternary technique. |
static bitStream |
pseudoternaryData(int[] signal)
Recover digital data from pseudoternary signal. |
static vector |
PSK(bitStream bits,
boolean plot)
Plot the result of modulating by Phase-shift keying technique. |
static vector |
QPSK(bitStream bits,
boolean plot)
Plot the result of modulating by Quadrature Phase-shift keying technique. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Encode()
| Method Detail |
|---|
public static int[] NRZL(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream NRZLData(int[] signal)
signal - An integer array that contains NRZI pulses
public static int[] NRZI(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream NRZIData(int[] signal)
signal - An integer array that contains NRZI pulses
public static int[] bipolarAMI(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream AMIData(int[] signal)
signal - An integer array that contains AMI pulses
public static int[] pseudoternary(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream pseudoternaryData(int[] signal)
signal - An integer array that contains pseudoternary pulses
public static int[] Manchester(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream ManchesterData(int[] signal)
signal - An integer array that contains Manchester pulses
public static int[] differentialManchester(bitStream bitstr,
boolean plot)
bitstr - A bitStreamplot - An option, true for to plot the signal
public static bitStream differentialManchesterData(int[] signal)
signal - An integer array that contains pseudoternary pulses
public static vector ASK(bitStream bits,
boolean plot)
bits - A bitStreamplot - An option, true for to plot the signal
public static vector FSK(bitStream bits,
boolean plot)
plot - An option, true for to plot the signalbits - A bitStream
public static vector PSK(bitStream bits,
boolean plot)
plot - An option, true for to plot the signalbits - A bitStream
public static vector QPSK(bitStream bits,
boolean plot)
bits - A bitStreamplot - An option, true for to plot the signal
public static void AM(double na,
double fc)
na - Modulation indexfc - Frequency of the carrier
public static vector AM(double na,
double fc,
vector x,
vector t,
boolean plot)
na - Modulation indexfc - Frequency of the carrierx - A vector that was normalized to unity amplitudet - The time vector that has the same length as xplot - An option, true for to plot the signal
public static void PM(double Ac,
double np,
double fc)
Ac - The carrier amplitudenp - Phase Modulation indexfc - Frequency of the carrier
public static vector PM(double Ac,
double np,
double fc,
vector x,
vector t,
boolean plot)
Ac - The carrier amplitudenp - Phase Modulation indexfc - Frequency of the carrierx - A vector that was normalized to unity amplitudet - The time vector that has the same length as xplot - An option, true for to plot the signal
public static bitStream directSeq(bitStream in,
bitStream bseq)
in - A bitStream, input databseq - A bitStream, binary pattern
public static bitStream inverseDirectSeq(bitStream s,
bitStream bseq)
s - A bitStream, the direct sequence signalbseq - A bitStream, binary pattern
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||