Back to project page APSK.
The source code is released under:
GNU General Public License
If you think the Android project APSK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * This file is part of znudigi./* w w w . j av a 2s. c om*/ * Released under GNU GENERAL PUBLIC LICENSE Version 2 * See file COPYING. * Copyright (C) 2007-2008 Leigh L. Klotz, Jr. <Leigh@WA5ZNU.org> */ package org.wa5znu.znuradio.dsp; public class Mixer { UnitPhasor phasor; public Mixer(int samplerate) { phasor = new UnitPhasor(samplerate); } public void setFrequency(double f) { phasor.setFrequency(f); } public double getFrequency() { return phasor.getFrequency(); } public Complex[] mixIQ(double data[], int length) { Complex[] result = new Complex[length]; for(int n = 0; n < length; n++) { result[n] = phasor.scale(data[n]); } return result; } }