Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5201/ipol.2017.178
22 December 2020, 23:18:20 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • ce7312fc5141c3085e2c9a49d0904825df754c37
    No releases to show
  • 3523adc
  • /
  • prsamp_2.0
  • /
  • README.txt
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:0eb9a83c62d09f8676e043453678ab7103944519
origin badgedirectory badge
swh:1:dir:201949c5c65794816680ac4a507a7f7ef37d1a19
origin badgerevision badge
swh:1:rev:ce7312fc5141c3085e2c9a49d0904825df754c37
origin badgesnapshot badge
swh:1:snp:1bcebdaaca2cc8f37f6e3f6dc85e624d16b3839b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: ce7312fc5141c3085e2c9a49d0904825df754c37 authored by Software Heritage on 25 May 2016, 00:00:00 UTC
ipol: Deposit 1296 in collection ipol
Tip revision: ce7312f
README.txt
% prSAMP: a phase retrieval algorithm

This software is written by Boshra Rajaei <b.rajaei@sadjad.ac.ir>

This is the version 1.0, released 25/5/2016. 

prSAMP package contains two distinct module: prSAMP for calibration and prSAMP for recovery. 

Calibration module tries to estimate unknown transmission matrix (TM) in a conventional phase retrieval problem y=|Hx| where $y\in R^M$, $H\in C^{MxN}$ and $x \in {0,1}^N$.
TM estimation works using P known input-output samples. Therefore, the actual calibration problem is Y'=|X'H'| where $Y\in R^{PxM}$ and $X\in {0,1}^{PxN}$.
prSAMP in calibration mode uses mpi parallelism to solve the above mentioned problem for each TM column. 

Recovery module calculates y=|Hx| for unknown $x\in C^N$ where measurements $y\in R^M$ and TM $H\in {0,1}^{MxN}$ are asummed to be known. 


# COMPILATION and execution of calibration module:

    make
    mpirun -np  <number_of_processors> ./prSAMP_Calibration <input_file_suffix>

    <input_file_suffix> parameter is the suffix of a text file "input?.txt" in the same path as ./prSAMP_Calib that contains all necessary inputs of prSAMP algorithm.
    For example, if the input file name is "input6140.txt" using 8 processors the execution command should be: 

    mpirun -np  8 ./prSAMP_Calibration 6140

    The output which contains the estimated TM would generate as "output6140.txt" in the same directory. 
    There are two pieces of codes in "useful files" diretory which are appropriate for preparing input file and reading the corresponding output file.
    "save2file_calib" generates input.txt file with necessary prSAMP input parameters and "loadfile_calib" reads the estimated TM from output.txt file. 

    Note: Calibration module requires MPI message interface library.


 
# COMPILATION and execution of recovery module:

    make
    ./prSAMP_Recovery <input_file_suffix>

    <input_file_suffix> parameter is the suffix of a text file "input?.txt" in the same path as ./prSAMP_Recovery that contains all necessary inputs of prSAMP algorithm.
    For example, if the input file name is "input8920.txt" the execution command should be: 

    ./prSAMP_Recovery 8920

    The output which contains the estimated "x" input would generate as "output8920.txt" in the same directory. 
    There are two pieces of codes in "useful files" diretory which are appropriate for preparing input file and reading the corresponding output file.
    "save2file_recovery" generates input.txt file with necessary prSAMP input parameters and "loadfile_recovery" reads the estimated unknown input "x" from output.txt file. 

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API